[tuxdroid-svn] r5504 - software_suite_v3/smart-core/smart-server/trunk/resources/02_robot
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-09-27 23:28:54
|
Author: remi
Date: 2009-09-28 01:28:42 +0200 (Mon, 28 Sep 2009)
New Revision: 5504
Modified:
software_suite_v3/smart-core/smart-server/trunk/resources/02_robot/10_resourceRF.py
Log:
* Use the channel bandwidth of the configuration instead of the default value.
Modified: software_suite_v3/smart-core/smart-server/trunk/resources/02_robot/10_resourceRF.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/resources/02_robot/10_resourceRF.py 2009-09-27 23:25:49 UTC (rev 5503)
+++ software_suite_v3/smart-core/smart-server/trunk/resources/02_robot/10_resourceRF.py 2009-09-27 23:28:42 UTC (rev 5504)
@@ -153,7 +153,7 @@
userChannel = self.configurator.getConfiguration()['avoided_channel']
userBandwidth = self.configurator.getConfiguration()['avoided_bandwidth']
if self.__channelIsInUse() != None:
- self.avoidChannel(self.__channelIsInUse(), WIFI_DEFAULT_AVOIDED_BANDWIDTH)
+ self.avoidChannel(self.__channelIsInUse(), userBandwidth)
else:
if userChannel != None:
self.logger.logInfo("Manual wifi channel avoidance : ch=%d bw=%d" % (userChannel, userBandwidth))
|