Skip to content

Commit 2ae7a39

Browse files
committed
Merge tag 'mac80211-for-davem-2019-04-26' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
Johannes Berg says: ==================== * fix use-after-free in mac80211 TXQs * fix RX STBC byte order * fix debugfs rename crashing due to ERR_PTR() * fix missing regulatory notification ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 21f1b8a + 5178791 commit 2ae7a39

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

net/mac80211/debugfs_netdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ void ieee80211_debugfs_rename_netdev(struct ieee80211_sub_if_data *sdata)
841841

842842
dir = sdata->vif.debugfs_dir;
843843

844-
if (!dir)
844+
if (IS_ERR_OR_NULL(dir))
845845
return;
846846

847847
sprintf(buf, "netdev:%s", sdata->name);

net/mac80211/ht.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ void ieee80211_apply_htcap_overrides(struct ieee80211_sub_if_data *sdata,
112112
IEEE80211_HT_CAP_TX_STBC);
113113

114114
/* Allow user to configure RX STBC bits */
115-
if (ht_capa_mask->cap_info & IEEE80211_HT_CAP_RX_STBC)
116-
ht_cap->cap |= ht_capa->cap_info & IEEE80211_HT_CAP_RX_STBC;
115+
if (ht_capa_mask->cap_info & cpu_to_le16(IEEE80211_HT_CAP_RX_STBC))
116+
ht_cap->cap |= le16_to_cpu(ht_capa->cap_info) &
117+
IEEE80211_HT_CAP_RX_STBC;
117118

118119
/* Allow user to decrease AMPDU factor */
119120
if (ht_capa_mask->ampdu_params_info &

net/mac80211/iface.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,6 +1908,9 @@ void ieee80211_if_remove(struct ieee80211_sub_if_data *sdata)
19081908
list_del_rcu(&sdata->list);
19091909
mutex_unlock(&sdata->local->iflist_mtx);
19101910

1911+
if (sdata->vif.txq)
1912+
ieee80211_txq_purge(sdata->local, to_txq_info(sdata->vif.txq));
1913+
19111914
synchronize_rcu();
19121915

19131916
if (sdata->dev) {

net/wireless/reg.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3778,10 +3778,9 @@ void wiphy_regulatory_register(struct wiphy *wiphy)
37783778
/*
37793779
* The last request may have been received before this
37803780
* registration call. Call the driver notifier if
3781-
* initiator is USER and user type is CELL_BASE.
3781+
* initiator is USER.
37823782
*/
3783-
if (lr->initiator == NL80211_REGDOM_SET_BY_USER &&
3784-
lr->user_reg_hint_type == NL80211_USER_REG_HINT_CELL_BASE)
3783+
if (lr->initiator == NL80211_REGDOM_SET_BY_USER)
37853784
reg_call_notifier(wiphy, lr);
37863785
}
37873786

0 commit comments

Comments
 (0)