diff options
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r-- | net/mac80211/iface.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 677422e11e07..81a27516813e 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -73,9 +73,10 @@ bool __ieee80211_recalc_txpower(struct ieee80211_sub_if_data *sdata) | |||
73 | return false; | 73 | return false; |
74 | } | 74 | } |
75 | 75 | ||
76 | void ieee80211_recalc_txpower(struct ieee80211_sub_if_data *sdata) | 76 | void ieee80211_recalc_txpower(struct ieee80211_sub_if_data *sdata, |
77 | bool update_bss) | ||
77 | { | 78 | { |
78 | if (__ieee80211_recalc_txpower(sdata)) | 79 | if (__ieee80211_recalc_txpower(sdata) || update_bss) |
79 | ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_TXPOWER); | 80 | ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_TXPOWER); |
80 | } | 81 | } |
81 | 82 | ||
@@ -1169,12 +1170,7 @@ static void ieee80211_iface_work(struct work_struct *work) | |||
1169 | if (local->scanning) | 1170 | if (local->scanning) |
1170 | return; | 1171 | return; |
1171 | 1172 | ||
1172 | /* | 1173 | if (!ieee80211_can_run_worker(local)) |
1173 | * ieee80211_queue_work() should have picked up most cases, | ||
1174 | * here we'll pick the rest. | ||
1175 | */ | ||
1176 | if (WARN(local->suspended, | ||
1177 | "interface work scheduled while going to suspend\n")) | ||
1178 | return; | 1174 | return; |
1179 | 1175 | ||
1180 | /* first process frames */ | 1176 | /* first process frames */ |