diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-10-31 14:59:27 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-10-31 14:59:27 +0000 |
commit | 48daeccfa78eaf4395f7a1f277a47b8772b18ff4 (patch) | |
tree | 348f1d589220bddc5afdb74060d5b7fef7722223 /package | |
parent | 6e5c62c1a6f852c7f6a26d6680f5364ee8508cd7 (diff) | |
download | upstream-48daeccfa78eaf4395f7a1f277a47b8772b18ff4.tar.gz upstream-48daeccfa78eaf4395f7a1f277a47b8772b18ff4.tar.bz2 upstream-48daeccfa78eaf4395f7a1f277a47b8772b18ff4.zip |
mac80211: prevent reconfigure calls while interfaces are down
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r34030
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34031 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/mac80211/patches/300-pending_work.patch | 12 | ||||
-rw-r--r-- | package/mac80211/patches/524-mac80211_configure_antenna_gain.patch | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/package/mac80211/patches/300-pending_work.patch b/package/mac80211/patches/300-pending_work.patch index 56f5af959b..577a8494c6 100644 --- a/package/mac80211/patches/300-pending_work.patch +++ b/package/mac80211/patches/300-pending_work.patch @@ -774,3 +774,15 @@ txok = false; isaggr = bf_isaggr(bf); +--- a/net/mac80211/cfg.c ++++ b/net/mac80211/cfg.c +@@ -2563,6 +2563,9 @@ static void ieee80211_mgmt_frame_registe + else + local->probe_req_reg--; + ++ if (!local->open_count) ++ break; ++ + ieee80211_queue_work(&local->hw, &local->reconfig_filter); + break; + default: diff --git a/package/mac80211/patches/524-mac80211_configure_antenna_gain.patch b/package/mac80211/patches/524-mac80211_configure_antenna_gain.patch index b3b4ebb2f3..99bdb84ff7 100644 --- a/package/mac80211/patches/524-mac80211_configure_antenna_gain.patch +++ b/package/mac80211/patches/524-mac80211_configure_antenna_gain.patch @@ -151,7 +151,7 @@ static int ieee80211_set_wds_peer(struct wiphy *wiphy, struct net_device *dev, const u8 *addr) { -@@ -3082,6 +3095,7 @@ struct cfg80211_ops mac80211_config_ops +@@ -3085,6 +3098,7 @@ struct cfg80211_ops mac80211_config_ops .set_wiphy_params = ieee80211_set_wiphy_params, .set_tx_power = ieee80211_set_tx_power, .get_tx_power = ieee80211_get_tx_power, |