cfg80211: use NL80211_ATTR_STA_AID in nl82011_set_station
authorAyala Beker <ayala.beker@intel.com>
Thu, 26 Nov 2015 15:26:12 +0000 (16:26 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 4 Dec 2015 13:43:32 +0000 (14:43 +0100)
Fix nl80211_set_station() to use the value of NL80211_ATTR_STA_AID
attribute instead of NL80211_ATTR_PEER_AID attribute.

Signed-off-by: Ayala Beker <ayala.beker@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c

index 67e7b531db79046f5a6068cc566b14041be74bc7..f4afa995b867abc14120955ffcf61c96d570fcce 100644 (file)
@@ -4256,8 +4256,8 @@ static int nl80211_set_station(struct sk_buff *skb, struct genl_info *info)
         * station. Include these parameters here and will check them in
         * cfg80211_check_station_change().
         */
-       if (info->attrs[NL80211_ATTR_PEER_AID])
-               params.aid = nla_get_u16(info->attrs[NL80211_ATTR_PEER_AID]);
+       if (info->attrs[NL80211_ATTR_STA_AID])
+               params.aid = nla_get_u16(info->attrs[NL80211_ATTR_STA_AID]);
 
        if (info->attrs[NL80211_ATTR_STA_LISTEN_INTERVAL])
                params.listen_interval =