summaryrefslogtreecommitdiffstats
path: root/net/mac80211/vht.c
diff options
context:
space:
mode:
authorSara Sharon <sara.sharon@intel.com>2016-02-03 21:52:23 +0200
committerJohannes Berg <johannes.berg@intel.com>2016-02-24 09:04:36 +0100
commit0241fa19ef4021c3db6f70b8f08d69f9e21cc043 (patch)
treeae04a78a5d94bc78b1a37ba6d98ead0093dba535 /net/mac80211/vht.c
parent4cc955de7c99fe60b09688d7c2564f8fc7d00ca2 (diff)
downloadlinux-0241fa19ef4021c3db6f70b8f08d69f9e21cc043.tar.bz2
mac80211: fix VHT MU-MIMO frame processing
The source and destintation addresses in the memcpy arguments are flipped. Fix that. Fixes: 23a1f8d44c0b("mac80211: process and save VHT MU-MIMO group frame") Signed-off-by: Sara Sharon <sara.sharon@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/vht.c')
-rw-r--r--net/mac80211/vht.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/net/mac80211/vht.c b/net/mac80211/vht.c
index 204cf9ad3019..341d192cea52 100644
--- a/net/mac80211/vht.c
+++ b/net/mac80211/vht.c
@@ -459,10 +459,12 @@ void ieee80211_process_mu_groups(struct ieee80211_sub_if_data *sdata,
bss_conf->mu_group.membership, WLAN_MEMBERSHIP_LEN))
return;
- memcpy(mgmt->u.action.u.vht_group_notif.membership,
- bss_conf->mu_group.membership, WLAN_MEMBERSHIP_LEN);
- memcpy(mgmt->u.action.u.vht_group_notif.position,
- bss_conf->mu_group.position, WLAN_USER_POSITION_LEN);
+ memcpy(bss_conf->mu_group.membership,
+ mgmt->u.action.u.vht_group_notif.membership,
+ WLAN_MEMBERSHIP_LEN);
+ memcpy(bss_conf->mu_group.position,
+ mgmt->u.action.u.vht_group_notif.position,
+ WLAN_USER_POSITION_LEN);
ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_MU_GROUPS);
}