From 2e329355538e3e7997b497b4b44b562ed7d1f8ec Mon Sep 17 00:00:00 2001 From: "Chang.H.S" Date: Fri, 4 May 2012 15:22:42 +0900 Subject: [PATCH] WirelessAccessPoint : fix typo and channel parsing --- lib/python/Plugins/SystemPlugins/WirelessAccessPoint/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/python/Plugins/SystemPlugins/WirelessAccessPoint/plugin.py b/lib/python/Plugins/SystemPlugins/WirelessAccessPoint/plugin.py index 9635780..ff6849d 100755 --- a/lib/python/Plugins/SystemPlugins/WirelessAccessPoint/plugin.py +++ b/lib/python/Plugins/SystemPlugins/WirelessAccessPoint/plugin.py @@ -218,7 +218,7 @@ class WirelessAccessPoint(Screen,ConfigListScreen): self.hostapdConfigList[key].value = int(value) elif key in self.hostapdConfigList.keys(): self.hostapdConfigList[key].value = value - if key == "channel" and value not in range(14): + if key == "channel" and int(value) not in range(14): self.hostapdConfigList[key].value = 1 # for key in self.hostapdConfigList.keys(): @@ -244,7 +244,7 @@ class WirelessAccessPoint(Screen,ConfigListScreen): self.wirelessDeviceEntry = getConfigListEntry(_("AP Device"), apModeConfig.wirelessdevice) self.wirelessModeEntry = getConfigListEntry(_("AP Mode"), apModeConfig.wirelessmode) self.channelEntry = getConfigListEntry(_("Channel (1~13)"), apModeConfig.channel) - self.ssidEntry = getConfigListEntry(_("SSID (0~32 Characters)"), apModeConfig.ssid) + self.ssidEntry = getConfigListEntry(_("SSID (1~32 Characters)"), apModeConfig.ssid) self.beaconEntry = getConfigListEntry(_("Beacon (15~65535)"), apModeConfig.beacon) self.rtsThresholdEntry = getConfigListEntry(_("RTS Threshold (0~2347)"), apModeConfig.rts_threshold) self.fragmThresholdEntry = getConfigListEntry(_("FRAGM Threshold (256~2346)"), apModeConfig.fragm_threshold) -- 2.7.4