From: Chang.H.S Date: Fri, 4 May 2012 06:22:42 +0000 (+0900) Subject: WirelessAccessPoint : fix typo and channel parsing X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=2e329355538e3e7997b497b4b44b562ed7d1f8ec;hp=019e349e077ea98096821e2418a37f8f7ddb4192 WirelessAccessPoint : fix typo and channel parsing --- 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)