trouble building wpa_supplicant-0.7.3
Heyendal, Carl
CHeyendal
Mon Dec 6 12:12:56 PST 2010
> -----Original Message-----
> From: Heyendal, Carl
> Sent: Monday, December 06, 2010 2:30 PM
> To: 'Jouni Malinen'; hostap at lists.shmoo.com
> Subject: RE: trouble building wpa_supplicant-0.7.3
>
>
>
> > -----Original Message-----
> > From: hostap-bounces at lists.shmoo.com
> > [mailto:hostap-bounces at lists.shmoo.com] On Behalf Of Jouni Malinen
> > Sent: Saturday, December 04, 2010 3:12 PM
> > To: hostap at lists.shmoo.com
> > Subject: Re: trouble building wpa_supplicant-0.7.3
> >
> > On Thu, Dec 02, 2010 at 12:27:43PM -0500, Heyendal, Carl wrote:
> > > I'm trying to build this package for an embedded platform
> > (AM1808 SOM on a Logicpd board). The kernel is 2.6.33-rc4.
> >
> > That looks like some kind of header file conflict in the
> SDK you use..
> > The compiler output here did not indicate what was the
> original source
> > of the duplicated definitions, so it is difficult to give any more
> > helpful instructions on how to resolve that.
> >
> > --
> > Jouni Malinen PGP
> > id EFC895FA
> > _______________________________________________
> > HostAP mailing list
> > HostAP at lists.shmoo.com
> > http://lists.shmoo.com/mailman/listinfo/hostap
> >
> >
>
> Jouni (and all),
>
> (I'm soooo close.....)
>
> The SDK is irrelevant. I tried compiling it on my Ubuntu
> workstation (9.10) but the compile broke at the same place. I
> commented out CONFIG_DRIVER_NL80211 to get it to build
> successfully. I have no idea if that's OK or not to do as
> there's no technical descriptions on what linux components I
> need and how they all work together. (BTW, any pointers to
> such would be appreciated)
>
> Now that the supplicant is built I'm trying to get some basic
> functionality going with the supplicant on my embedded
> platform. I tried to get the supplicant to do a simple scan
> but it's working ever so intermittently. I have better luck
> using the command 'iw dev wlan0 scan', however even this
> command will only work once, then nothing is returned after
> the same command is re-issued. To get it to work again I have
> to shutdown the interface and then bring it back up. After
> that the 'iw' scan command will work again once or twice.
>
> The wpa scan command however hardly works at all. I only got
> it to work twice in a row at one point, but that's it. I do
> always see the leds blink on my USB wireless adapter (D-link
> WUA-1340) every time I invoke the wpa scan command so I know
> the supplicant is talking to the device.
>
> To do a scan I kept it simple by following the instructions
> for operation without a configuration file in the README, so
> that I can eventually work towards full operation with a
> configuration file. Here's a summary of commands I used with
> it's output when I did manage to get a wpa scan to work:
>
> =======================
> root at arago:~# usb 1-1: new high speed USB device using
> musb_hdrc and address 2 usb 1-1: New USB device found,
> idVendor=07d1, idProduct=3c04 usb 1-1: New USB device
> strings: Mfr=1, Product=2, SerialNumber=0 usb 1-1: Product:
> 802.11 bg WLAN usb 1-1: Manufacturer: Ralink root at arago:~#
> ifconfig wlan0 up rt73usb 1-1:1.0: firmware: using built-in
> firmware rt73.bin root at arago:~# iw dev wlan0 scan BSS
> 00:1d:7e:f0:87:77 (on wlan0)
> TSF: 1018222976886 usec (11d, 18:50:22)
> freq: 2412
> beacon interval: 100
> capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431)
> signal: -66.00 dBm
> last seen: 1060 ms ago
> SSID: SHSDemo
> Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0* 12.0* 24.0* 36.0
> DS Parameter set: channel 1
> Country: DE Environment: Indoor/Outdoor
> Channels [1 - 13]
> ERP: <no flags>
> Extended supported rates: 9.0 18.0 48.0 54.0
> WPA: * Version: 1
> * Group cipher: TKIP
> * Pairwise ciphers: TKIP
> * Authentication suites: PSK BSS
> c0:3f:0e:87:e7:92 (on wlan0)
> TSF: 332774177239 usec (3d, 20:26:14)
> freq: 2412
> beacon interval: 100
> capability: ESS ShortPreamble ShortSlotTime (0x0421)
> signal: -70.00 dBm
> last seen: 1060 ms ago
> SSID: SAM
> Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0
> DS Parameter set: channel 1
> Country: US Environment: Indoor/Outdoor
> Channels [1 - 11]
> ERP: <no flags>
> Extended supported rates: 24.0 36.0 48.0 54.0
> WPS: * Version: 1.0
> * Wi-Fi Protected Setup State: 2 (Configured)
> * Response Type: 3 (AP)
> * Unknown TLV (0x1047, 16 bytes): 00 00 00
> 00 00 00 10 00 00 00 c0 3f 0e 87 e7 92
> * Manufacturer: Netgear, Inc.
> * Model: WNR1000v2
> * Model Number: V2H1
> * Serial Number: none
> * Primary Device Type: 6-0050f204-1
> * Device name: WNR1000v2(Wireless AP-2.4G)
> * Config methods: Ethernet, Label, PBC
> * RF Bands: 0x3
> [...]
> root at arago:~# wpa_supplicant -g/var/run/wpa_supplicant-global
> -B -d Global control interface '/var/run/wpa_supplicant-global'
> Daemonize..
> root at arago:~# wpa_cli -g/var/run/wpa_supplicant-global
> interface_add wlan0 "" wext /var/run/wpa_supplicant OK
> root at arago:~# wpa_cli scan && wpa_cli scan_results Selected
> interface 'wlan0'
> OK
> Selected interface 'wlan0'
> bssid / frequency / signal level / flags / ssid
> 00:1d:7e:f0:87:77 2412 186 [WPA-PSK-TKIP][ESS]
> SHSDemo
> 00:23:5d:0f:7d:21 2412 178
> [WPA-EAP-CCMP][WPA2-EAP-CCMP][ESS] swk
> 00:26:5a:fa:01:46 2437 178
> [WPA-PSK-TKIP+CCMP][ESS] LTCiSICRAWIFI
> c0:3f:0e:87:e7:92 2412 190 [ESS] SAM
> 00:22:3f:bd:68:a8 2437 186 [ESS] GainSpanDemo
> 00:23:5d:0f:7d:23 2412 178 [ESS] Guest Access
> root at arago:~# wpa_cli scan && wpa_cli scan_results Selected
> interface 'wlan0'
> OK
> Selected interface 'wlan0'
> bssid / frequency / signal level / flags / ssid
> 00:1d:7e:f0:87:77 2412 186 [WPA-PSK-TKIP][ESS]
> SHSDemo
> 00:23:5d:0f:7d:21 2412 178
> [WPA-EAP-CCMP][WPA2-EAP-CCMP][ESS] swk
> 00:26:5a:fa:01:46 2437 178
> [WPA-PSK-TKIP+CCMP][ESS] LTCiSICRAWIFI
> c0:3f:0e:87:e7:92 2412 190 [ESS] SAM
> 00:22:3f:bd:68:a8 2437 186 [ESS] GainSpanDemo
> 00:23:5d:0f:7d:23 2412 178 [ESS] Guest Access
> root at arago:~# wpa_cli scan && wpa_cli scan_results Selected
> interface 'wlan0'
> OK
> Selected interface 'wlan0'
> bssid / frequency / signal level / flags / ssid root at arago:~#
> wpa_cli scan && wpa_cli scan_results Selected interface 'wlan0'
> OK
> Selected interface 'wlan0'
> bssid / frequency / signal level / flags / ssid
> =============================================================
>
> When the wireless USB device is plugged in, hotplugging
> reports that the device is using built-in firmware.
> "rt73usb 1-1:1.0: firmware: using built-in firmware rt73.bin"
> Could the firmware in the USB device be out of date? How can
> I expose its version? How can I get the device to upgrade?
>
> Appreciate any help?
>
> thanx
> /carl
>
>
>
I captured a burst of scan responses, then it goes silent. I have to bring the wlan0 interface down and then back up for scan responses to be restored, then it's pooched again.
Is it simply a bad adapter?
/carl h.
=============================
root at arago:~# ifconfig wlan0 down
root at arago:~# ifconfig wlan0 up
root at arago:~# wpa_cli scan && wpa_cli scan_results
Selected interface 'wlan0'
OK
Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
root at arago:~# wpa_cli scan && wpa_cli scan_results
Selected interface 'wlan0'
OK
Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
00:1d:7e:f0:87:77 2412 194 [WPA-PSK-TKIP][ESS] SHSDemo
00:23:5d:0f:7d:21 2412 172 [WPA-EAP-CCMP][WPA2-EAP-CCMP][ESS] swk
c0:3f:0e:87:e7:92 2412 186 [ESS] SAM
root at arago:~# wpa_cli scan && wpa_cli scan_results
Selected interface 'wlan0'
OK
Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
00:1d:7e:f0:87:77 2412 194 [WPA-PSK-TKIP][ESS] SHSDemo
00:23:5d:0f:7d:21 2412 172 [WPA-EAP-CCMP][WPA2-EAP-CCMP][ESS] swk
c0:3f:0e:87:e7:92 2412 186 [ESS] SAM
root at arago:~# wpa_cli scan && wpa_cli scan_results
Selected interface 'wlan0'
OK
Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
00:1d:7e:f0:87:77 2412 194 [WPA-PSK-TKIP][ESS] SHSDemo
00:23:5d:0f:7d:21 2412 172 [WPA-EAP-CCMP][WPA2-EAP-CCMP][ESS] swk
c0:3f:0e:87:e7:92 2412 186 [ESS] SAM
root at arago:~# wpa_cli scan && wpa_cli scan_results
Selected interface 'wlan0'
OK
Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
00:1d:7e:f0:87:77 2412 194 [WPA-PSK-TKIP][ESS] SHSDemo
00:23:5d:0f:7d:21 2412 172 [WPA-EAP-CCMP][WPA2-EAP-CCMP][ESS] swk
c0:3f:0e:87:e7:92 2412 186 [ESS] SAM
root at arago:~# wpa_cli scan && wpa_cli scan_results
Selected interface 'wlan0'
OK
Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
00:1d:7e:f0:87:77 2412 194 [WPA-PSK-TKIP][ESS] SHSDemo
00:23:5d:0f:7d:21 2412 172 [WPA-EAP-CCMP][WPA2-EAP-CCMP][ESS] swk
c0:3f:0e:87:e7:92 2412 186 [ESS] SAM
root at arago:~# wpa_cli scan && wpa_cli scan_results
Selected interface 'wlan0'
OK
Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
00:1d:7e:f0:87:77 2412 194 [WPA-PSK-TKIP][ESS] SHSDemo
00:23:5d:0f:7d:21 2412 172 [WPA-EAP-CCMP][WPA2-EAP-CCMP][ESS] swk
c0:3f:0e:87:e7:92 2412 186 [ESS] SAM
root at arago:~# wpa_cli scan && wpa_cli scan_results
Selected interface 'wlan0'
OK
Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
00:1d:7e:f0:87:77 2412 194 [WPA-PSK-TKIP][ESS] SHSDemo
00:23:5d:0f:7d:21 2412 172 [WPA-EAP-CCMP][WPA2-EAP-CCMP][ESS] swk
c0:3f:0e:87:e7:92 2412 186 [ESS] SAM
root at arago:~# wpa_cli scan && wpa_cli scan_results
Selected interface 'wlan0'
OK
Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
00:1d:7e:f0:87:77 2412 194 [WPA-PSK-TKIP][ESS] SHSDemo
00:23:5d:0f:7d:21 2412 172 [WPA-EAP-CCMP][WPA2-EAP-CCMP][ESS] swk
c0:3f:0e:87:e7:92 2412 186 [ESS] SAM
root at arago:~# wpa_cli scan && wpa_cli scan_results
Selected interface 'wlan0'
OK
Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
00:1d:7e:f0:87:77 2412 194 [WPA-PSK-TKIP][ESS] SHSDemo
00:23:5d:0f:7d:21 2412 172 [WPA-EAP-CCMP][WPA2-EAP-CCMP][ESS] swk
c0:3f:0e:87:e7:92 2412 186 [ESS] SAM
root at arago:~# wpa_cli scan && wpa_cli scan_results
Selected interface 'wlan0'
OK
Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
root at arago:~# wpa_cli scan && wpa_cli scan_results
Selected interface 'wlan0'
OK
Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
root at arago:~# wpa_cli scan && wpa_cli scan_results
Selected interface 'wlan0'
OK
Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
root at arago:~#
More information about the Hostap
mailing list