Changes between Version 1 and Version 2 of HowTo/bssidFix
- Timestamp:
- Aug 25, 2006, 11:33:18 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowTo/bssidFix
v1 v2 6 6 When wifi network cards are placed in ad-hoc mode (iwconfig ath0 mode 'ad-hoc') they will automatically search for networks with the same essid (iwconfig ath0 essid 'blah'). They will adopt the bssid of the first node to turn on that has the specified essid. 7 7 8 Unfortunately, this algorithm and/or implementation is not very good and even relatively small networks nodes that have the same 'essid' will end up with different a 'bssid'. Since the wifi card drivers filter by bsssid, nodes that should be in the same ad-hoc network can't exchange packets.8 Unfortunately, this algorithm and/or implementation is not very good and even relatively small networks, nodes that have the same 'essid' will end up with different a 'bssid'. Since the wifi card drivers filter by bsssid, nodes that should be in the same ad-hoc network can't exchange packets. 9 9 10 10 The solution to this problem can be found by modifying the madwifi drivers (for Atheros wifi cards only), so that the bssid a node generates is a hash of the essid instead of its MAC address. This ensures that nodes with indentical essid's end up with identical bssid's. … … 14 14 == What to Change == 15 15 16 T 16 These instructions are designed to be applied to the baseline.ndz as of Aug 25,2006. 17 17 18 1. ssh to one of the nodes (ssh root@node1-2) 19 2. open /usr/src/madwifi/trunk/net80211/ieee80211_node.c in your favourite text editor 20 3. goto line 427, you'll see some code that looks like this: 21 {{{ 22 if (ic->ic_flags & IEEE80211_F_DESBSSID) 23 IEEE80211_ADDR_COPY(ni->ni_bssid, ic->ic_des_bssid); 24 else 25 ni->ni_bssid[0] |= 0x02; /* local bit for IBSS */ 26 }}} 27 4. Right after these lines add the lines: 28 {{{ 29 int len = 0; 30 while (ic->ic_des_essid[len] != 0) len++; 31 int i; 32 for (i=0;i<IEEE80211_ADDR_LEN;i++) { 33 ni->ni_bssid[i] = ic->ic_des_essid[i % len]; 34 } 35 }}} 36 5. Save the file 37 6. cd /usr/src/madwifi/trunk 38 7. make 39 8. cp /usr/src/madwifi/trunk/net80211/*.ko /lib/modules/2.6.12/net 40 9. modprobe -r ath_pci 41 10. modprobe ath_pci 18 42 43 You will probably want to save the image this modified node so that you can save running these steps each time you want to perform an experiment. 19 44 20 orbitHandler is an alternative framework for controlling the ORBIT lab. It consists of a series of console commands that that operate on predefined sets of nodes. The major features include: 45 Save the image of the node: 46 {{{ 47 joeuser@console.sb1:~$ saveNode 1,2 48 }}} 21 49 22 * Precisely specify large, intricate node sets23 * Send specific commands to each node in the set24 * Distributed ftp equivalent25 * Entirely command line driven26 * No global grid operations