mac80211: ask driver to look at power level when starting AP
authorJohannes Berg <johannes.berg@intel.com>
Thu, 13 Nov 2014 10:23:53 +0000 (11:23 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 15 Dec 2014 11:27:02 +0000 (12:27 +0100)
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>
net/mac80211/cfg.c

index e75d5c53e97ba9cbd9640de2d4a3798d33711609..169665835b6c14c3089eb12d7f08ef6e4ff86b18 100644 (file)
@@ -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);