MGMT (TX callback) fail - AP rt2x00 with Managed broadcom

Petr Novak n_petr
Thu Aug 7 20:59:35 PDT 2008


Hello,
I trying establish hostapd AP mode on rt2500pci with Managed mode on Broadcom card.

a) I found some Microsoft (00:50:F2) specific code, maybe some Broadcom (00:10:18) specific code should be included.

b) Strange behaviour with TX callback - type and WLAN_FC_TYPE_MGMT are zeros, fail here and no ACK.

I do not have C++ skills, but made two patches for more debug info. I hope that could be usefull for us.

# hostapd -dd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Opening raw packet socket for ifindex 0
BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
Failed to update rate sets in kernel module
RATE[0] rate=10 flags=0x2
RATE[1] rate=20 flags=0x6
RATE[2] rate=55 flags=0x6
RATE[3] rate=110 flags=0x6
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
Could not set passive scanning: Unknown error 4294967295
Flushing old station entries
Deauthenticate all stations
Failed to set CTS protect in kernel driver
Failed to set Short Slot Time option in kernel driver
Could not set preamble for kernel driver
Using interface wlan0 with hwaddr 00:0f:ea:77:8f:a1 and ssid 'stealth'
Failed to set CTS protect in kernel driver
Failed to set Short Slot Time option in kernel driver
Could not set preamble for kernel driver
wlan0: Setup of interface done.
TYPE = 0, WLAN_FC_TYPE_MGMT = 0
MGMT (TX callback) TYPE = 0, WLAN_FC_TYPE_MGMT = 0  ... ACK
oui = 4120, OUI_MICROSOFT = 20722, unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
oui = 4120, OUI_MICROSOFT = 20722, unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
oui = 4120, OUI_MICROSOFT = 20722, unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
oui = 4120, OUI_MICROSOFT = 20722, unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
oui = 4120, OUI_MICROSOFT = 20722, unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 00:16:ce:6a:24:59 sent probe request for broadcast SSID
oui = 4120, OUI_MICROSOFT = 20722, unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 00:16:ce:6a:24:59 sent probe request for broadcast SSID
oui = 4120, OUI_MICROSOFT = 20722, unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 00:16:ce:6a:24:59 sent probe request for our SSID
oui = 4120, OUI_MICROSOFT = 20722, unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 00:16:ce:6a:24:59 sent probe request for our SSID
TYPE = 0, WLAN_FC_TYPE_MGMT = 0
MGMT (TX callback) TYPE = 0, WLAN_FC_TYPE_MGMT = 0  ... fail
mgmt::proberesp cb
TYPE = 0, WLAN_FC_TYPE_MGMT = 0
MGMT (TX callback) TYPE = 0, WLAN_FC_TYPE_MGMT = 0  ... fail
mgmt::proberesp cb
oui = 4120, OUI_MICROSOFT = 20722, unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
oui = 4120, OUI_MICROSOFT = 20722, unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
TYPE = 0, WLAN_FC_TYPE_MGMT = 0
MGMT (TX callback) TYPE = 0, WLAN_FC_TYPE_MGMT = 0  ... fail
mgmt::proberesp cb
TYPE = 0, WLAN_FC_TYPE_MGMT = 0
MGMT (TX callback) TYPE = 0, WLAN_FC_TYPE_MGMT = 0  ... fail
mgmt::proberesp cb
oui = 4120, OUI_MICROSOFT = 20722, unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
oui = 4120, OUI_MICROSOFT = 20722, unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
oui = 4120, OUI_MICROSOFT = 20722, unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
^CSignal 2 received - terminating
Flushing old station entries
Deauthenticate all stations

Best regards, Petr Novak
-------------- next part --------------
--- driver_nl80211.c.orig	2008-08-08 05:28:26.000000000 +0200
+++ driver_nl80211.c	2008-08-08 05:10:17.000000000 +0200
@@ -1615,9 +1573,10 @@
 	type = WLAN_FC_GET_TYPE(fc);
 	stype = WLAN_FC_GET_STYPE(fc);
 
+	printf("TYPE = %d, WLAN_FC_TYPE_MGMT = %d \n", type, WLAN_FC_TYPE_MGMT);
 	switch (type) {
 	case WLAN_FC_TYPE_MGMT:
-		wpa_printf(MSG_DEBUG, "MGMT (TX callback) %s",
+		wpa_printf(MSG_DEBUG, "MGMT (TX callback) TYPE = %d, WLAN_FC_TYPE_MGMT = %d  ... %s", type, WLAN_FC_TYPE_MGMT,
 			   ok ? "ACK" : "fail");
 		ieee802_11_mgmt_cb(hapd, buf, len, stype, ok);
 		break;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ieee802_11.c.patch
Type: text/x-c
Size: 2458 bytes
Desc: not available
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20080808/f6aeb680/attachment.bin 



More information about the Hostap mailing list