nl80211: fix STA AID bug
Johannes Berg
maintainerPATCH 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.
Signed-off-by Johannes Berg <[email protected]>
---
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 sknla_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 ], ¶ms.station_flags))
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