Skip to contentSkip to conversation

nl80211: fix STA AID bug

PATCH In review Johannes Berg 2 participants 2 messages Apr 7, 2008 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 nl80211: fix STA AID bug

This fixes the STA AID setting and actually makes hostapd/mac80211 work properly in presence of power-saving stations.

---
Makes me want to hurt myself.

 net/wireless/nl80211.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/wireless/nl80211.c +1 -1
@@ -1161,7 +1161,7 @@ static int nl80211_new_station(struct sk
 		nla_len(info->attrs[NL80211_ATTR_STA_SUPPORTED_RATES]);
 	params.listen_interval =
 		nla_get_u16(info->attrs[NL80211_ATTR_STA_LISTEN_INTERVAL]);
-	params.listen_interval = nla_get_u16(info->attrs[NL80211_ATTR_STA_AID]);
+	params.aid = nla_get_u16(info->attrs[NL80211_ATTR_STA_AID]);
 
 	if (parse_station_flags(info->attrs[NL80211_ATTR_STA_FLAGS],
 				&params.station_flags))
#1 lore raw
Quoted 3 lines · On Monday 07 April 2008 14:35:46 Johannes Berg wrote:

This fixes the STA AID setting and actually makes hostapd/mac80211 work properly in presence of power-saving stations.

Indeed... I have lots of problems with power-saving stations and p54-ap. (OT: no, it's not because of your patch.. it's the device/fw. grrrrr!)

Regards,
Chr