mac80211: default to automatic power control
Johannes Berg
maintainerPATCH 1/1 mac80211: default to automatic power control
In
commit 47afbaf5af9454a7a1a64591e20cbfcc27ca67a8
Author: Johannes Berg <[email protected]> Date: Tue Apr 7 15:22:28 2009 +0200
mac80211: correct wext transmit power handler
I fixed the wext handler, but forgot to make the default of the user_power_level -1 (aka "auto"), so that now the transmit power is always set to 0, causing associations to time out and similar problems since we're transmitting with very little power. Correct this by correcting the default user_power_level to -1.
Signed-off-by Johannes Berg <[email protected]>
Bisected-by Niel Lambrechts <[email protected]>
--- net/mac80211/main.c | 1 + 1 file changed, 1 insertion(+)
net/mac80211/main.c +1 -0
@@ -763,6 +763,7 @@ struct ieee80211_hw *ieee80211_alloc_hw( local->hw.conf.long_frame_max_tx_count = wiphy->retry_long; local->hw.conf.short_frame_max_tx_count = wiphy->retry_short; local->hw.conf.radio_enabled = true; + local->user_power_level =-1 ;INIT_LIST_HEAD (&local->interfaces);mutex_init (&local->iflist_mtx);