[PATCH] madwifi: RSN capability mismatch when WMM enabled

Masashi Honma honma
Tue Mar 17 22:39:21 PDT 2009


Hello.

RSN fails when WMM enabled with madwifi driver.
This is a error log on wpa_supplicant side.
This log says RSN IE mismatching.

-----
WPA: IE in 3/4 msg does not match with IE in Beacon/ProbeResp (src=xx:xx:xx:xx:xx:xx)
WPA: RSN IE in Beacon/ProbeResp - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 01 01 00
WPA: RSN IE in 3/4 msg - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 01 0d 00
-----

I made a patch for workaround.
And I could connect with this.


diff --git a/hostapd/driver_madwifi.c b/hostapd/driver_madwifi.c
index a532ee2..bde937a 100644
--- a/hostapd/driver_madwifi.c
+++ b/hostapd/driver_madwifi.c
@@ -288,6 +288,8 @@ madwifi_configure_wpa(struct madwifi_driver_data *drv)
 	v = 0;
 	if (conf->rsn_preauth)
 		v |= BIT(0);
+	if (conf->wmm_enabled)
+		v |= (RSN_NUM_REPLAY_COUNTERS_16 << 2);
 	wpa_printf(MSG_DEBUG, "%s: rsn capabilities=0x%x",
 		   __func__, conf->rsn_preauth);
 	if (set80211param(drv, IEEE80211_PARAM_RSNCAPS, v)) {


This is just only workaround.
I think RSN capability should be calculated by identical routine in
"wpa_write_rsn_ie".
When I have some time, I will make like "get_rsn_capabilty" function
and test all bit includes peerkey and 11w.

Regards,
Masashi Honma.



More information about the Hostap mailing list