summaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-11-13 11:23:53 +0100
committerJohannes Berg <johannes.berg@intel.com>2014-12-15 12:27:02 +0100
commit4bcc56bb3a9622e877772598d1cac124266b2b8a (patch)
treeee319c7130f7685618e5b23df58887dbf98ea500 /net/mac80211
parent5cf16616e152dd5c274a65954c77f64892d025a8 (diff)
downloadop-kernel-dev-4bcc56bb3a9622e877772598d1cac124266b2b8a.zip
op-kernel-dev-4bcc56bb3a9622e877772598d1cac124266b2b8a.tar.gz
mac80211: ask driver to look at power level when starting AP
The power level might have been set, but as the interface was idle it might not have taken effect yet. Ask the driver to check the power level when starting up an AP so that in this case the correct power level is used in case the device/driver can only set it when the interface is actually active. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/cfg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index e75d5c5..1696658 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -678,7 +678,8 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev,
BSS_CHANGED_BEACON_ENABLED |
BSS_CHANGED_BEACON |
BSS_CHANGED_SSID |
- BSS_CHANGED_P2P_PS;
+ BSS_CHANGED_P2P_PS |
+ BSS_CHANGED_TXPOWER;
int err;
old = sdata_dereference(sdata->u.ap.beacon, sdata);
OpenPOWER on IntegriCloud