From: Johannes Berg Date: Tue, 7 Apr 2009 13:22:28 +0000 (+0200) Subject: mac80211: correct wext transmit power handler X-Git-Tag: v2.6.30-rc4~68^2~40^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47afbaf5af9454a7a1a64591e20cbfcc27ca67a8;p=pandora-kernel.git mac80211: correct wext transmit power handler Wext makes no assumptions about the contents of data->txpower.fixed and data->txpower.value when data->txpower.disabled is set, so do not update the user-requested power level while disabling. Also, when wext configures a really _fixed_ power output [1], we should reject it instead of limiting it to the regulatory constraint. If the user wants to set a _limit_ [2] then we should honour that. [1] iwconfig wlan0 txpower 20dBm fixed [2] iwconfig wlan0 txpower 10dBm This fixes http://www.intellinuxwireless.org/bugzilla/show_bug.cgi?id=1942 Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed