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@xxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx> wrote: >> On Mon, Jul 19, 2010 at 12:35 AM, Jonathan Guerin <jonathan@xxxxxxxxxxxx> 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 >> > -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html