Search Linux Wireless

Re: [PATCH] mac80211: use full power if off-channel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/08/2012 02:35 AM, Johannes Berg wrote:
From: Johannes Berg <johannes.berg@xxxxxxxxx>

Instead of using full power when scanning, use
full power when off-channel. This is different
since off-channel can be remain-on-channel.

What if we are scanning on our current channel?  Shouldn't
it be full-power then as well?

Thanks,
Ben


Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
---
  net/mac80211/main.c |    4 +---
  1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index e706f9e..35c4b1d 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -148,9 +148,7 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed)
  		changed |= IEEE80211_CONF_CHANGE_SMPS;
  	}

-	if (test_bit(SCAN_SW_SCANNING, &local->scanning) ||
-	    test_bit(SCAN_ONCHANNEL_SCANNING, &local->scanning) ||
-	    test_bit(SCAN_HW_SCANNING, &local->scanning))
+	if (local->hw.conf.flags & IEEE80211_CONF_OFFCHANNEL)
  		power = chan->max_power;
  	else
  		power = local->power_constr_level ?



--
Ben Greear <greearb@xxxxxxxxxxxxxxx>
Candela Technologies Inc  http://www.candelatech.com


--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux