原文:http://blog.csdn.net/hui523hui523hui523/article/details/38493725

 

1.2.2 无线网络Wireless

WiFi设置储存在/etc/config/wireless中(目前支持Broadcom, Atheros 和mac80211)。当第一次启动路由器时,将会自动检测你的卡并且创建简单的配置文件。默认情况下 'option network lan' 是被注释掉的。它提供了一个非安全的无线网络共享。

The WiFi settings are configured in the file /etc/config/wireless(currently supported on Broadcom, Atheros and mac80211). When booting the router for the first time it should detect your card and create a sample configuration file. By default 'option network lan' is commented. This prevents unsecured sharing of the network over the wireless interface.

每一个无线驱动都有自己的配置脚本/lib/wifi/driver_name.sh ,用来处理驱动选项和配置。这个脚本也调用特殊二进制,例如Broadcom的w1c,或者atheros的hostapd 和wpa_supplicant 。

Each wireless driver has its own configuration script in /lib/wifi/driver_name.sh which handles driver specific options and configurations. This script is also calling driver specific binaries like wlc for Broadcom, or hostapd and wpa_supplicant for atheros.

使用不同的架构配置是因为不同的驱动配置。

The reason for using such architecture, is that it abstracts the driver configuration.

标准的Broadcom无线配置: Generic Broadcom wireless config:

标准的Atheros无线配置: Generic Atheros wireless config:

标准的mac80211无线配置: Generic mac80211 wireless config:

标准的多播Atheros无线配置: Generic multi-radio Atheros wireless config:

这个文件里有两个类型的配置段。wifi-device针对物理wifi接口,wifi-iface配置了一个在wifi-device之上的虚拟接口(需要被驱动支持)。

There are two types of config sections in this file. The 'wifi-device' refers to the physical wifi interface and 'wifi-iface' configures a virtual interface on top of that (if supported by the driver).

无线配置全概括:A full outline of the wireless configuration file with description of each field:

 

 

 

 

wifi-device的配置项: :

  • type 
    该接口使用的驱动。The driver to use for this interface.
  • country 
    国家代码用来指名规定设置。The country code used to determine the regulatory settings.
  • channel 
    wifi频道(例如1-14,取决于country设置)The wifi channel (e.g. 1-14, depending on your country setting).
  • maxassoc 
    可选:最大的可连接客户端。这个特性只在broadcom芯片组上可选。可选的: Maximum number of associated clients. This feature is supported only on the broadcom chipset.
  • distance 
    可选的: Distance between the ap and the furthest client in meters. This feature is supported only on the atheros chipset.
  • mode 
    The frequency band (b, g, bg, a). This feature is only supported on the atheros chipset.
  • diversity 
    可选的: Enable diversity for the Wi-Fi device. This feature is supported only on the atheros chipset.
  • rxantenna 
    可选的: Antenna identifier (0, 1 or 2) for reception. This feature is supported by atheros and some broadcom chipsets.
  • txantenna 
    可选的: Antenna identifier (0, 1 or 2) for emission. This feature is supported by atheros and some broadcom chipsets.
  • txpowerSet the transmission power to be used. The amount is specified in dBm.

wifi-iface的配置: :

    • network 
      选择/etc/config/network中的接口段 Selects the interface section from /etc/config/networkto be used with this interface
    • device 
      设置设备名称Set the wifi device name.
    • mode 
      可选模式:Operating mode:
      • ap 
        接入点模式Access point mode
      • sta 
        客户端模式Client mode
      • adhoc 
        Ad-Hoc mode
      • monitor 
        监控模式Monitor mode
      • wds 
        WDS点对点连接 WDS point-to-point link
    • ssid 设置wifi设备使用的SSID Set the SSID to be used on the wifi device.
    • bssid设置BSSID 地址用来设置wds的mac地址。Set the BSSID address to be used for wds to set the mac address of the other wds unit.
    • txpower(Deprecated, set in wifi-device) Set the transmission power to be used. The amount is specified in dBm.
    • encryption 
      加密设置。可设置为以下值:Encryption setting. Accepts the following values:
      • none
      • wep
      • psk, psk2 
        WPA(2) Pre-shared Key
      • wpa, wpa2 
        WPA(2) RADIUS
    • key, key1, key2, key3, key4(wep, wpa and psk) 
      WEP key, WPA key (PSK mode) or the RADIUS shared secret (WPA RADIUS mode)
    • server(wpa) 
      The RADIUS server ip address
    • port(wpa) 
      The RADIUS server port (defaults to 1812)
    • hidden 
      0 broadcasts the ssid; 1 disables broadcasting of the ssid
    • isolate 
      可选的: Isolation is a mode usually set on hotspots that limits the clients to communicate only with the AP and not with other wireless clients. 0 disables ap isolation (default); 1 enables ap isolation.

相关文章:

  • 2021-04-13
  • 2021-08-30
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
猜你喜欢
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2021-06-21
  • 2021-09-14
  • 2021-06-08
相关资源
相似解决方案