ORBIT-USER: ad-hoc BSSID partitioning fix
Einar Vollset
einar at cs.cornell.edu
Mon Aug 28 17:40:45 EDT 2006
I've made a similar fix to the latest madwifi (0.9.2) source in case
someone prefers the bleeding edge :-):
Assuming you've unpacked madwifi-0.9.2.tar.gz in your home directory,
the file is:
~/madwifi-0.9.2/net80211/ieee80211_node.c
The change is roughly on line 305:
Before:
if (vap->iv_opmode == IEEE80211_M_IBSS) {
vap->iv_flags |= IEEE80211_F_SIBSS;
ni->ni_capinfo |= IEEE80211_CAPINFO_IBSS; /*
XXX */
if (vap->iv_flags & IEEE80211_F_DESBSSID)
IEEE80211_ADDR_COPY(ni->ni_bssid, vap-
>iv_des_bssid);
else
ni->ni_bssid[0] |= 0x02; /* local bit
for IBSS */
}
After:
if (vap->iv_opmode == IEEE80211_M_IBSS) {
int i;
vap->iv_flags |= IEEE80211_F_SIBSS;
ni->ni_capinfo |= IEEE80211_CAPINFO_IBSS; /*
XXX */
if (vap->iv_flags & IEEE80211_F_DESBSSID)
IEEE80211_ADDR_COPY(ni->ni_bssid, vap-
>iv_des_bssid);
else
ni->ni_bssid[0] |= 0x02; /* local bit
for IBSS */
for(i=0; i<IEEE80211_ADDR_LEN;i++){
ni->ni_bssid[i] = ni->ni_essid[i % ni->ni_esslen];
}
}
then simply make and copy the new modules as in Chris' tutorial and
you're done. Note that this hasn't
been tested extensively, but appears to work on roughly 20 nodes on
the main grid.
Cheers,
Einar
On Aug 25, 2006, at 7:48 PM, chris at orderonenetworks.com wrote:
> Hello All.
>
> I've tested the madwifi changes on the main grid and it all seems
> to work!
> I've added the instructions to the documentation page as a reference.
>
> http://www.orbit-lab.org/wiki/HowTo/bssidFix
>
> If you have any problems, or it turns out I've missed something,
> please
> let me know.
>
> Thanks,
> Chris
>
>
>
>
More information about the orbit-user
mailing list