• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5
6import netgear_WNDR_dual_band_configurator
7import ap_spec
8
9
10class Netgear3400APConfigurator(
11        netgear_WNDR_dual_band_configurator.NetgearDualBandAPConfigurator):
12    """Base class for Netgear WNDR 3400 v2 and 3700 v3 dual band routers."""
13
14    def is_security_mode_supported(self, security_mode):
15        """Returns if the supported security modes.
16
17        @param security_mode: the security mode to check against
18        @return True if the security_mode is supported by the router
19
20        """
21        return security_mode in (ap_spec.SECURITY_TYPE_DISABLED,
22                                 ap_spec.SECURITY_TYPE_WPAPSK,
23                                 ap_spec.SECURITY_TYPE_WEP)
24