summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/mlme.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index d7504ab61a34..eb660310ea7c 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -714,7 +714,7 @@ static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata)
714 } 714 }
715 715
716 /* if present, add any custom IEs that go before HT */ 716 /* if present, add any custom IEs that go before HT */
717 if (assoc_data->ie_len && assoc_data->ie) { 717 if (assoc_data->ie_len) {
718 static const u8 before_ht[] = { 718 static const u8 before_ht[] = {
719 WLAN_EID_SSID, 719 WLAN_EID_SSID,
720 WLAN_EID_SUPP_RATES, 720 WLAN_EID_SUPP_RATES,
@@ -748,7 +748,7 @@ static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata)
748 &assoc_data->ap_vht_cap); 748 &assoc_data->ap_vht_cap);
749 749
750 /* if present, add any custom non-vendor IEs that go after HT */ 750 /* if present, add any custom non-vendor IEs that go after HT */
751 if (assoc_data->ie_len && assoc_data->ie) { 751 if (assoc_data->ie_len) {
752 noffset = ieee80211_ie_split_vendor(assoc_data->ie, 752 noffset = ieee80211_ie_split_vendor(assoc_data->ie,
753 assoc_data->ie_len, 753 assoc_data->ie_len,
754 offset); 754 offset);
@@ -779,7 +779,7 @@ static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata)
779 } 779 }
780 780
781 /* add any remaining custom (i.e. vendor specific here) IEs */ 781 /* add any remaining custom (i.e. vendor specific here) IEs */
782 if (assoc_data->ie_len && assoc_data->ie) { 782 if (assoc_data->ie_len) {
783 noffset = assoc_data->ie_len; 783 noffset = assoc_data->ie_len;
784 pos = skb_put(skb, noffset - offset); 784 pos = skb_put(skb, noffset - offset);
785 memcpy(pos, assoc_data->ie + offset, noffset - offset); 785 memcpy(pos, assoc_data->ie + offset, noffset - offset);