Skip to content

Commit

Permalink
cfg80211: use NL80211_ATTR_STA_AID in nl82011_set_station
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
AyalaBkr authored and jmberg-intel committed Dec 4, 2015
1 parent 91f123f commit a9bc31e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/wireless/nl80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit a9bc31e

Please sign in to comment.