oobleck
Group: Members
Posts: 3
Joined: Jan. 2008 |
|
Posted: Feb. 12 2008,00:18 |
|
Quote (andrewb @ Feb. 10 2008,21:39) | Looking at what you are doing I notice that you assign the SSID with iwconfig after wpa_supplicant is run. I execute these two commands in the reverse order. I'm not sure the ssid line in the wpa_supplicant.conf file assigns the ssid, I think it is there to identify which ssid that particular block of the file belongs to. If this is so this may be why you are having problems. Try running the iwconfig wlan0 essid <ssid> command before wpa_supplicant. |
Per your suggestion I tried doing the iwconfig before the wpa_supplicant, but it didn't work. After the iwconfig wlan0 essid <ssid> command, doing an iwconfig with no arguments showed no access point address (i.e. all zeroes). However, if I do the iwconfig a second time, after the wpa_supplicant, it works, though I have no idea why. So here's the whole process:
Code Sample | modprobe ndiswrapper iwconfig wlan0 essid <ssid> /usr/sbin/wpa_supplicant -B -dd -c /opt/wpa.conf -i wlan0 -D ndiswrapper iwconfig wlan0 essid <ssid> pkill pump pump -i wlan0
|
It's only after the second iwconfig command that an access point address is assigned. But I still need to do the first one, or it doesn't work.
Many thanks for the suggestions! -- oobleck
|