On Tue, 2008-08-05 at 00:09 +0100, Dave wrote: > > However, > > sparse finds two issues on x86_64, both due to sizeof() returning > > size_t, which is wider than int. > > > > Here's the fix. Please integrate it into the patches that introduce the > > code. > > Will do. I obviously need to upgrade my version of sparse, since it isn't complaining to me :( It's not just sparse. gcc will complain too. But you'll need to compile for a 64-bit kernel to see it. > >> To use WPA, you will need an Agere firmware image. You can get the > >> necessary file at > >> <http://marc.info/?l=orinoco-devel&m=121078835610877> > > I tested it on my WPA2 AP and could not associate: > > I'm not familiar with the difference between WPA/WPA2. Is that expected to work? WPA2 uses a different IE format. It is also required to support CCMP, unlike WPA1, which defaults to TKIP. I could associate to a WPA1 AP with TKIP, but only on a 32-bit system. It still fails on the 64-bit system. wpa_supplicant prints this in a loop: RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP]) RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP]) Wireless event: cmd=0x8c07 len=40 AssocReq IE wireless event - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP]) Wireless event: cmd=0x8b15 len=24 Wireless event: new AP: 00:0f:66:2f:ef:59 Association info event req_ies - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 WPA: set own WPA/RSN IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 State: ASSOCIATED -> ASSOCIATED wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT) WEXT: Operstate: linkmode=-1, operstate=5 Associated with 00:0f:66:2f:ef:59 WPA: Association event - clear replay counter WPA: Clear old PTK Setting authentication timeout: 10 sec 0 usec Cancelling scan request And the kernel log is: [ 7729.202964] eth1: New link status: Connected (0001) [ 7738.072382] eth1: New link status: Disconnected (0002) [ 7739.238773] eth1: New link status: Connected (0001) [ 7748.527988] eth1: New link status: Disconnected (0002) [ 7749.683346] eth1: New link status: Connected (0001) [ 7758.983565] eth1: New link status: Disconnected (0002) I'm sorry, I'm really limited in time right now to do more tests, and I'm afraid I'll be mostly offline for the next 3 weeks. -- Regards, Pavel Roskin -- 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