nl80211: fix STA AID bug
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 7 Apr 2008 12:35:46 +0000 (14:35 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Apr 2008 02:19:30 +0000 (22:19 -0400)
This fixes the STA AID setting and actually makes hostapd/mac80211
work properly in presence of power-saving stations.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c

index e3a214f63f9178e6689c2749ba7b275795718652..f68a5c8f214733b386f715ecd1bd20745fd5dfaf 100644 (file)
@@ -945,7 +945,7 @@ static int nl80211_new_station(struct sk_buff *skb, struct genl_info *info)
                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))