* ath5k Ad Hoc Association @ 2010-07-19 4:35 Jonathan Guerin 2010-07-19 19:22 ` Bob Copeland 0 siblings, 1 reply; 13+ messages in thread From: Jonathan Guerin @ 2010-07-19 4:35 UTC (permalink / raw) To: linux-wireless, ath5k-devel Hi, I'm trying to get my wireless nodes to associate in ad hoc mode. They were able to work correctly with madwifi-ng, but with ath5k, they simply will not associate. I've tried monitoring the interface for any frames being sent out, but no beacons appear to be going out. I'm currently running Ubuntu 10.04 with the following kernel: 2.6.32-23-generic-pae I've built and installed the compat package for this kernel version: compat-wireless-2.6.32.16 Any help with this would be greatly appreciated, or at least some points to assist me in troubleshooting this issue. Many thanks, -- Jonathan ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: ath5k Ad Hoc Association 2010-07-19 4:35 ath5k Ad Hoc Association Jonathan Guerin @ 2010-07-19 19:22 ` Bob Copeland 2010-07-20 6:39 ` Jonathan Guerin 2010-07-20 22:11 ` [ath5k-devel] " Derek Smithies 0 siblings, 2 replies; 13+ messages in thread From: Bob Copeland @ 2010-07-19 19:22 UTC (permalink / raw) To: Jonathan Guerin; +Cc: linux-wireless, ath5k-devel On Mon, Jul 19, 2010 at 12:35 AM, Jonathan Guerin <jonathan@guerin.id.au> wrote: > Hi, > > I'm trying to get my wireless nodes to associate in ad hoc mode. [...] > I've built and installed the compat package for this kernel version: > compat-wireless-2.6.32.16 Ok, I'm not sure which mainline kernel this corresponds to, but I just tested ath5k adhoc with success in the latest wireless-testing kernel. Here's what I did: (had dnsmasq running dhcp for 192.168.10.x, network manager disabled) $ su # modprobe -r ath5k # modprobe ath5k # iw dev wlan0 set type ibss # ifconfig wlan0 192.168.10.1 up # iw dev wlan0 ibss join myibss 2462 Then on the other machine (Vista) I just located 'myibss' (so beacons are working) and selected it, then successfully pinged 192.168.10.1. It may depend on which channel you are trying to use; are you on a channel that allows beaconing in your regulatory domain? -- Bob Copeland %% www.bobcopeland.com ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: ath5k Ad Hoc Association 2010-07-19 19:22 ` Bob Copeland @ 2010-07-20 6:39 ` Jonathan Guerin 2010-07-20 6:59 ` Jonathan Guerin ` (2 more replies) 2010-07-20 22:11 ` [ath5k-devel] " Derek Smithies 1 sibling, 3 replies; 13+ messages in thread From: Jonathan Guerin @ 2010-07-20 6:39 UTC (permalink / raw) To: Bob Copeland; +Cc: linux-wireless, ath5k-devel Hi, Thanks heaps for replying. Yes, I've checked the channel (36, 5180) allows beaconing. I've tried the commands you mentioned, but no luck. If I monitor the interface from another station, the ath5k drive never appears to beacon. What I've managed to get working, however, is to start one station using MadWifi. This definitely beacons, then I bring up the ath5k interfaces on the other machines using these commands: ******* # Create interfaces iw phy phy0 interface add wlan0 type adhoc iw wlan0 set channel 36 iwconfig wlan0 channel 36 iwconfig wlan0 essid txctest # Set IP and bring up ifconfig wlan0 10.0.1.64 netmask 255.255.255.0 up ifconfig mon0 up sleep 5 # Scan trick to force association iwlist scan ***** They ath5k stations will then correctly join the SSID and I am able to ping them. Using the ibss join command doesn't seem to help when I only bring up ath5k stations - they never seem to beacon at all. This was run from a monitor interface on the MadWifi node: **** tcpdump -s 2048 -i mon0 -w dump.pcap tcpdump: WARNING: mon0: no IPv4 address assigned tcpdump: listening on mon0, link-type IEEE802_11_RADIO (802.11 plus radiotap header), capture size 2048 bytes ^C0 packets captured 0 packets received by filter 0 packets dropped by kernel **** Thanks, -- Jonathan Guerin On Tue, Jul 20, 2010 at 5:22 AM, Bob Copeland <me@bobcopeland.com> wrote: > On Mon, Jul 19, 2010 at 12:35 AM, Jonathan Guerin <jonathan@guerin.id.au> wrote: >> Hi, >> >> I'm trying to get my wireless nodes to associate in ad hoc mode. > [...] >> I've built and installed the compat package for this kernel version: >> compat-wireless-2.6.32.16 > > Ok, I'm not sure which mainline kernel this corresponds to, but I > just tested ath5k adhoc with success in the latest wireless-testing > kernel. Here's what I did: > > (had dnsmasq running dhcp for 192.168.10.x, network manager disabled) > > $ su > # modprobe -r ath5k > # modprobe ath5k > # iw dev wlan0 set type ibss > # ifconfig wlan0 192.168.10.1 up > # iw dev wlan0 ibss join myibss 2462 > > Then on the other machine (Vista) I just located 'myibss' (so beacons > are working) and selected it, then successfully pinged 192.168.10.1. > > It may depend on which channel you are trying to use; are you on > a channel that allows beaconing in your regulatory domain? > > -- > Bob Copeland %% www.bobcopeland.com > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: ath5k Ad Hoc Association 2010-07-20 6:39 ` Jonathan Guerin @ 2010-07-20 6:59 ` Jonathan Guerin 2010-07-20 11:20 ` Bob Copeland 2010-07-20 11:50 ` Holger Schurig 2 siblings, 0 replies; 13+ messages in thread From: Jonathan Guerin @ 2010-07-20 6:59 UTC (permalink / raw) To: Bob Copeland; +Cc: linux-wireless, ath5k-devel I've just tried associating with an existing MadWifi station, and the 'ibss join' command doesn't work - the ath5k station eventually gives up and just creates it's own BSSID. I used the above method: # Create interfaces iw phy phy0 interface add wlan0 type adhoc iw wlan0 set channel 36 iwconfig wlan0 channel 36 iwconfig wlan0 essid txctest # Set IP and bring up ifconfig wlan0 10.0.1.64 netmask 255.255.255.0 up sleep 5 # Scan trick to force association iwlist scan and this works and the station joins the existing Cell ID - I can ping the other station etc. Thanks, -- Jonathan Guerin On Tue, Jul 20, 2010 at 4:39 PM, Jonathan Guerin <jonathan@guerin.id.au> wrote: > Hi, > > Thanks heaps for replying. > > Yes, I've checked the channel (36, 5180) allows beaconing. I've tried > the commands you mentioned, but no luck. If I monitor the interface > from another station, the ath5k drive never appears to beacon. > > What I've managed to get working, however, is to start one station > using MadWifi. This definitely beacons, then I bring up the ath5k > interfaces on the other machines using these commands: > ******* > # Create interfaces > iw phy phy0 interface add wlan0 type adhoc > iw wlan0 set channel 36 > iwconfig wlan0 channel 36 > iwconfig wlan0 essid txctest > > # Set IP and bring up > ifconfig wlan0 10.0.1.64 netmask 255.255.255.0 up > ifconfig mon0 up > > sleep 5 > # Scan trick to force association > iwlist scan > ***** > > They ath5k stations will then correctly join the SSID and I am able to > ping them. > > Using the ibss join command doesn't seem to help when I only bring up > ath5k stations - they never seem to beacon at all. This was run from a > monitor interface on the MadWifi node: > **** > tcpdump -s 2048 -i mon0 -w dump.pcap > tcpdump: WARNING: mon0: no IPv4 address assigned > tcpdump: listening on mon0, link-type IEEE802_11_RADIO (802.11 plus > radiotap header), capture size 2048 bytes > ^C0 packets captured > 0 packets received by filter > 0 packets dropped by kernel > **** > > Thanks, > > -- > Jonathan Guerin > > > > On Tue, Jul 20, 2010 at 5:22 AM, Bob Copeland <me@bobcopeland.com> wrote: >> On Mon, Jul 19, 2010 at 12:35 AM, Jonathan Guerin <jonathan@guerin.id.au> wrote: >>> Hi, >>> >>> I'm trying to get my wireless nodes to associate in ad hoc mode. >> [...] >>> I've built and installed the compat package for this kernel version: >>> compat-wireless-2.6.32.16 >> >> Ok, I'm not sure which mainline kernel this corresponds to, but I >> just tested ath5k adhoc with success in the latest wireless-testing >> kernel. Here's what I did: >> >> (had dnsmasq running dhcp for 192.168.10.x, network manager disabled) >> >> $ su >> # modprobe -r ath5k >> # modprobe ath5k >> # iw dev wlan0 set type ibss >> # ifconfig wlan0 192.168.10.1 up >> # iw dev wlan0 ibss join myibss 2462 >> >> Then on the other machine (Vista) I just located 'myibss' (so beacons >> are working) and selected it, then successfully pinged 192.168.10.1. >> >> It may depend on which channel you are trying to use; are you on >> a channel that allows beaconing in your regulatory domain? >> >> -- >> Bob Copeland %% www.bobcopeland.com >> > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: ath5k Ad Hoc Association 2010-07-20 6:39 ` Jonathan Guerin 2010-07-20 6:59 ` Jonathan Guerin @ 2010-07-20 11:20 ` Bob Copeland 2010-07-21 1:16 ` Jonathan Guerin 2010-07-20 11:50 ` Holger Schurig 2 siblings, 1 reply; 13+ messages in thread From: Bob Copeland @ 2010-07-20 11:20 UTC (permalink / raw) To: Jonathan Guerin; +Cc: linux-wireless, ath5k-devel [please don't top post] On Tue, Jul 20, 2010 at 04:39:29PM +1000, Jonathan Guerin wrote: > Yes, I've checked the channel (36, 5180) allows beaconing. I've tried > the commands you mentioned, but no luck. If I monitor the interface > from another station, the ath5k drive never appears to beacon. What does "iw phy phy0 info" show? -- Bob Copeland %% www.bobcopeland.com ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: ath5k Ad Hoc Association 2010-07-20 11:20 ` Bob Copeland @ 2010-07-21 1:16 ` Jonathan Guerin 2010-07-21 5:47 ` Jonathan Guerin 0 siblings, 1 reply; 13+ messages in thread From: Jonathan Guerin @ 2010-07-21 1:16 UTC (permalink / raw) To: Bob Copeland; +Cc: linux-wireless, ath5k-devel On Tue, Jul 20, 2010 at 9:20 PM, Bob Copeland <me@bobcopeland.com> wrote: >> Yes, I've checked the channel (36, 5180) allows beaconing. I've tried >> the commands you mentioned, but no luck. If I monitor the interface >> from another station, the ath5k drive never appears to beacon. > > What does "iw phy phy0 info" show? iw phy phy0 info Wiphy phy0 Band 1: Frequencies: * 2412 MHz [1] (20.0 dBm) * 2417 MHz [2] (20.0 dBm) * 2422 MHz [3] (20.0 dBm) * 2427 MHz [4] (20.0 dBm) * 2432 MHz [5] (20.0 dBm) * 2437 MHz [6] (20.0 dBm) * 2442 MHz [7] (20.0 dBm) * 2447 MHz [8] (20.0 dBm) * 2452 MHz [9] (20.0 dBm) * 2457 MHz [10] (20.0 dBm) * 2462 MHz [11] (20.0 dBm) * 2467 MHz [12] (disabled) * 2472 MHz [13] (disabled) * 2484 MHz [14] (disabled) Bitrates (non-HT): * 1.0 Mbps * 2.0 Mbps (short preamble supported) * 5.5 Mbps (short preamble supported) * 11.0 Mbps (short preamble supported) * 6.0 Mbps * 9.0 Mbps * 12.0 Mbps * 18.0 Mbps * 24.0 Mbps * 36.0 Mbps * 48.0 Mbps * 54.0 Mbps Band 2: Frequencies: * 5180 MHz [36] (17.0 dBm) * 5200 MHz [40] (17.0 dBm) * 5220 MHz [44] (17.0 dBm) * 5240 MHz [48] (17.0 dBm) * 5260 MHz [52] (20.0 dBm) (passive scanning, no IBSS, radar detection) * 5280 MHz [56] (20.0 dBm) (passive scanning, no IBSS, radar detection) * 5300 MHz [60] (20.0 dBm) (passive scanning, no IBSS, radar detection) * 5320 MHz [64] (20.0 dBm) (passive scanning, no IBSS, radar detection) * 5500 MHz [100] (disabled) * 5520 MHz [104] (disabled) * 5540 MHz [108] (disabled) * 5560 MHz [112] (disabled) * 5580 MHz [116] (disabled) * 5600 MHz [120] (disabled) * 5620 MHz [124] (disabled) * 5640 MHz [128] (disabled) * 5660 MHz [132] (disabled) * 5680 MHz [136] (disabled) * 5700 MHz [140] (disabled) * 5745 MHz [149] (30.0 dBm) * 5765 MHz [153] (30.0 dBm) * 5785 MHz [157] (30.0 dBm) * 5805 MHz [161] (30.0 dBm) * 5825 MHz [165] (30.0 dBm) Bitrates (non-HT): * 6.0 Mbps * 9.0 Mbps * 12.0 Mbps * 18.0 Mbps * 24.0 Mbps * 36.0 Mbps * 48.0 Mbps * 54.0 Mbps max # scan SSIDs: 4 Supported interface modes: * IBSS * managed * AP * AP/VLAN * monitor * mesh point Supported commands: * new_interface * set_interface * new_key * new_beacon * new_station * new_mpath * set_mesh_params * set_bss * authenticate * associate * deauthenticate * disassociate * join_ibss * set_wiphy_netns * connect * disconnect iw reg get country AU: (2402 - 2482 @ 40), (N/A, 20) (5170 - 5250 @ 40), (3, 23) (5250 - 5330 @ 40), (3, 23), DFS (5735 - 5835 @ 40), (3, 30) Cheers, Jonathan ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: ath5k Ad Hoc Association 2010-07-21 1:16 ` Jonathan Guerin @ 2010-07-21 5:47 ` Jonathan Guerin 0 siblings, 0 replies; 13+ messages in thread From: Jonathan Guerin @ 2010-07-21 5:47 UTC (permalink / raw) To: Bob Copeland; +Cc: linux-wireless, ath5k-devel TXkgYXBvbG9naWVzIGFsbCwgSSBoYWQgdGhlIGFudGVubmEgcGx1Z2dlZCBpbiB0byB0aGUgZmly c3QgY29ubmVjdG9yLgphdGg1ayBhcHB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gNDApLCAoTi9BLCAyMCkKPiCgIKAgoCCgKDUx NzAgLSA1MjUwIEAgNDApLCAoMywgMjMpCj4goCCgIKAgoCg1MjUwIC0gNTMzMCBAIDQwKSwgKDMs IDIzKSwgREZTCj4goCCgIKAgoCg1NzM1IC0gNTgzNSBAIDQwKSwgKDMsIDMwKQo+Cj4gQ2hlZXJz LAo+Cj4gSm9uYXRoYW4KPgo= ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: ath5k Ad Hoc Association 2010-07-20 6:39 ` Jonathan Guerin 2010-07-20 6:59 ` Jonathan Guerin 2010-07-20 11:20 ` Bob Copeland @ 2010-07-20 11:50 ` Holger Schurig 2010-07-20 12:05 ` Jonathan Guerin 2 siblings, 1 reply; 13+ messages in thread From: Holger Schurig @ 2010-07-20 11:50 UTC (permalink / raw) To: Jonathan Guerin; +Cc: Bob Copeland, linux-wireless, ath5k-devel > iw phy phy0 interface add wlan0 type adhoc > iw wlan0 set channel 36 > iwconfig wlan0 channel 36 > iwconfig wlan0 essid txctest I can't think of ANY reason why you do that. Use "iw", not "iwconfig". All the last three commands should be replaced with one single "iw dev wlan0 ibss join myibss XXXX", where XXXX is the frequency for channel 36. If in doubt what this is, just do "iw list" and you'll see it. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: ath5k Ad Hoc Association 2010-07-20 11:50 ` Holger Schurig @ 2010-07-20 12:05 ` Jonathan Guerin 0 siblings, 0 replies; 13+ messages in thread From: Jonathan Guerin @ 2010-07-20 12:05 UTC (permalink / raw) To: Holger Schurig; +Cc: Bob Copeland, linux-wireless, ath5k-devel I understand that it's not the way I'm supposed to do it. What I'm saying is that it's not working, whereas the other way is! :( I will play around some more with it tomorrow. It's still baffling as to why the driver is not beaconing until there is another node tho... -- Jonathan Guerin On Tue, Jul 20, 2010 at 9:50 PM, Holger Schurig <holgerschurig@googlemail.com> wrote: >> iw phy phy0 interface add wlan0 type adhoc >> iw wlan0 set channel 36 >> iwconfig wlan0 channel 36 >> iwconfig wlan0 essid txctest > > I can't think of ANY reason why you do that. Use "iw", not "iwconfig". > > All the last three commands should be replaced with one single "iw dev wlan0 > ibss join myibss XXXX", where XXXX is the frequency for channel 36. If in > doubt what this is, just do "iw list" and you'll see it. > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ath5k-devel] ath5k Ad Hoc Association 2010-07-19 19:22 ` Bob Copeland 2010-07-20 6:39 ` Jonathan Guerin @ 2010-07-20 22:11 ` Derek Smithies 2010-07-20 22:54 ` Jonathan Guerin 2010-07-20 23:16 ` Bob Copeland 1 sibling, 2 replies; 13+ messages in thread From: Derek Smithies @ 2010-07-20 22:11 UTC (permalink / raw) To: Bob Copeland; +Cc: Jonathan Guerin, Ath5k Devel issues., linux-wireless Hi, On Mon, 19 Jul 2010, Bob Copeland wrote: > On Mon, Jul 19, 2010 at 12:35 AM, Jonathan Guerin <jonathan@guerin.id.au> wrote: >> Hi, >> >> I'm trying to get my wireless nodes to associate in ad hoc mode. [[[snipped]]] > $ su > # modprobe -r ath5k > # modprobe ath5k > # iw dev wlan0 set type ibss > # ifconfig wlan0 192.168.10.1 up > # iw dev wlan0 ibss join myibss 2462 > > Then on the other machine (Vista) I just located 'myibss' (so beacons > are working) and selected it, then successfully pinged 192.168.10.1. Wrong. If the other machine located your node, then one of the four statements is true: a)beacons are working b)probes are working - which means a scan is happening. c)beacons and probes are working d)beacons and probes are not working. The vista machine saw a data packet, and sent a probe request, which your machine answered. >>>>>>>> My colleague here did some work with a slightly older kernel. He found that the association process worked sometimes - not always. There was a time dependency - both nodes have to go through this at the same time. Further - scans - it seems that nodes have to scan to find things. Old information in the mac80211 has to be expired and removed. A scan should not be necessary - if both ends are put on channel 2462- a scan should not be required - there is no channel changing. Yet - my colleague noted a scan helped nodes to associate. I would say this::: I cannot deduce what is happening from the initial posters report. I need a packet dump of the beacons/probes and all the other packets on the air. Cheers, Derek. -- Derek Smithies Ph.D. IndraNet Technologies Ltd. ph +64 3 365 6485 Web: http://www.indranet-technologies.com/ "How did you make it work??" "Oh, the usual, get everything right". ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ath5k-devel] ath5k Ad Hoc Association 2010-07-20 22:11 ` [ath5k-devel] " Derek Smithies @ 2010-07-20 22:54 ` Jonathan Guerin 2010-07-20 23:16 ` Bob Copeland 1 sibling, 0 replies; 13+ messages in thread From: Jonathan Guerin @ 2010-07-20 22:54 UTC (permalink / raw) To: Derek Smithies; +Cc: Bob Copeland, Ath5k Devel issues., linux-wireless I am happy to provide such data. Tell me what config you want me to put in place and I'll set up a capture. Cheers, -- Jonathan Guerin On Wed, Jul 21, 2010 at 8:11 AM, Derek Smithies <derek@indranet.co.nz> wrote: > Hi, > On Mon, 19 Jul 2010, Bob Copeland wrote: > >> On Mon, Jul 19, 2010 at 12:35 AM, Jonathan Guerin <jonathan@guerin.id.au> >> wrote: >>> >>> Hi, >>> >>> I'm trying to get my wireless nodes to associate in ad hoc mode. > > [[[snipped]]] >> >> $ su >> # modprobe -r ath5k >> # modprobe ath5k >> # iw dev wlan0 set type ibss >> # ifconfig wlan0 192.168.10.1 up >> # iw dev wlan0 ibss join myibss 2462 >> >> Then on the other machine (Vista) I just located 'myibss' (so beacons >> are working) and selected it, then successfully pinged 192.168.10.1. > > Wrong. > If the other machine located your node, then one of the four statements is > true: > a)beacons are working > b)probes are working - which means a scan is happening. > c)beacons and probes are working > d)beacons and probes are not working. The vista machine saw a data > packet, and sent a probe request, which your machine answered. > >>>>>>>>> > > My colleague here did some work with a slightly older kernel. > > He found that the association process worked sometimes - not always. > There was a time dependency - both nodes have to go through this at the same > time. > > Further - scans - it seems that nodes have to scan to find things. Old > information in the mac80211 has to be expired and removed. > > A scan should not be necessary - if both ends are put on channel 2462- a > scan should not be required - there is no channel changing. Yet - my > colleague noted a scan helped nodes to associate. > > I would say this::: > I cannot deduce what is happening from the initial posters report. I need a > packet dump of the beacons/probes and all the other packets on the air. > > Cheers, > Derek. > -- > Derek Smithies Ph.D. > IndraNet Technologies Ltd. > ph +64 3 365 6485 > Web: http://www.indranet-technologies.com/ > > "How did you make it work??" > "Oh, the usual, get everything right". > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ath5k-devel] ath5k Ad Hoc Association 2010-07-20 22:11 ` [ath5k-devel] " Derek Smithies 2010-07-20 22:54 ` Jonathan Guerin @ 2010-07-20 23:16 ` Bob Copeland 2010-07-21 0:00 ` Jonathan Guerin 1 sibling, 1 reply; 13+ messages in thread From: Bob Copeland @ 2010-07-20 23:16 UTC (permalink / raw) To: Derek Smithies; +Cc: Jonathan Guerin, Ath5k Devel issues., linux-wireless On Wed, Jul 21, 2010 at 10:11:14AM +1200, Derek Smithies wrote: >> Then on the other machine (Vista) I just located 'myibss' (so beacons >> are working) and selected it, then successfully pinged 192.168.10.1. > Wrong. > If the other machine located your node, then one of the four statements > is true: Ok, fine, I just set up a monitor interface and I see beacons (and probe responses) for my setup on that channel. > A scan should not be necessary - if both ends are put on channel 2462- a > scan should not be required - there is no channel changing. Yet - my > colleague noted a scan helped nodes to associate. There was a bug in older kernels that wouldn't fully configure the beacons until after a reset, which scanning happens to do. It's possible something similar is going on. Also, scanning might open a previously passive channel because we might get lucky and receive a beacon from another node on it. The 'iw phy phy0 info' can show this kind of thing. -- Bob Copeland %% www.bobcopeland.com ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ath5k-devel] ath5k Ad Hoc Association 2010-07-20 23:16 ` Bob Copeland @ 2010-07-21 0:00 ` Jonathan Guerin 0 siblings, 0 replies; 13+ messages in thread From: Jonathan Guerin @ 2010-07-21 0:00 UTC (permalink / raw) To: Bob Copeland; +Cc: Derek Smithies, Ath5k Devel issues., linux-wireless Do you remember what version kernel this was fixed in? I can update the nodes to at least this version and see if it helps... On my setup, I am not seeing ANY probes from the ath5k nodes at all. If I start a MadWifi node and the ath5k nodes join it, then bring down the MadWifi node, the ath5k nodes ALL start beaconing... Cheers, -- Jonathan Guerin On Wed, Jul 21, 2010 at 9:16 AM, Bob Copeland <me@bobcopeland.com> wrote: > On Wed, Jul 21, 2010 at 10:11:14AM +1200, Derek Smithies wrote: >>> Then on the other machine (Vista) I just located 'myibss' (so beacons >>> are working) and selected it, then successfully pinged 192.168.10.1. >> Wrong. >> If the other machine located your node, then one of the four statements >> is true: > > Ok, fine, I just set up a monitor interface and I see beacons > (and probe responses) for my setup on that channel. > >> A scan should not be necessary - if both ends are put on channel 2462- a >> scan should not be required - there is no channel changing. Yet - my >> colleague noted a scan helped nodes to associate. > > There was a bug in older kernels that wouldn't fully configure the > beacons until after a reset, which scanning happens to do. It's > possible something similar is going on. > > Also, scanning might open a previously passive channel because we might > get lucky and receive a beacon from another node on it. The 'iw phy > phy0 info' can show this kind of thing. > > -- > Bob Copeland %% www.bobcopeland.com > > ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2010-07-21 5:47 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-07-19 4:35 ath5k Ad Hoc Association Jonathan Guerin 2010-07-19 19:22 ` Bob Copeland 2010-07-20 6:39 ` Jonathan Guerin 2010-07-20 6:59 ` Jonathan Guerin 2010-07-20 11:20 ` Bob Copeland 2010-07-21 1:16 ` Jonathan Guerin 2010-07-21 5:47 ` Jonathan Guerin 2010-07-20 11:50 ` Holger Schurig 2010-07-20 12:05 ` Jonathan Guerin 2010-07-20 22:11 ` [ath5k-devel] " Derek Smithies 2010-07-20 22:54 ` Jonathan Guerin 2010-07-20 23:16 ` Bob Copeland 2010-07-21 0:00 ` Jonathan Guerin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).