Differences

This shows you the differences between two versions of the page.

doc:uci:wireless [2012/12/06 21:07]
hnyman correct typos
doc:uci:wireless [2014/02/04 10:37] (current)
zajec Document VHT40, VHT80 and VHT160 (r39456)
Line 35: Line 35:
| ''phy'' | string | no/yes | //(autodetected)// | Specifies the radio phy associated to this section, it is usually autodetected and should not be changed. By default openwrt uses ''macaddr'' to identify the radio (more precise) but you can use ''phy'' instead, to be more hardware independent.\\ :!: **This option is only used for type ''mac80211'' and ''madwifi'' (trunk)** | | ''phy'' | string | no/yes | //(autodetected)// | Specifies the radio phy associated to this section, it is usually autodetected and should not be changed. By default openwrt uses ''macaddr'' to identify the radio (more precise) but you can use ''phy'' instead, to be more hardware independent.\\ :!: **This option is only used for type ''mac80211'' and ''madwifi'' (trunk)** |
| ''macaddr'' | MAC address | yes/no | //(autodetected)// | Specifies the radio adapter associated to this section, it is //not// used to change the device mac but to identify the underlying interface. The value is autodetected at first boot or when you use ''phy'' parameter. If you want a hardware independent config (to restore the config on many routers) you should use ''phy'' parameter instead of ''macaddr''.\\ :!: **This option is only used for type ''mac80211'' and ''madwifi'' (trunk)** | | ''macaddr'' | MAC address | yes/no | //(autodetected)// | Specifies the radio adapter associated to this section, it is //not// used to change the device mac but to identify the underlying interface. The value is autodetected at first boot or when you use ''phy'' parameter. If you want a hardware independent config (to restore the config on many routers) you should use ''phy'' parameter instead of ''macaddr''.\\ :!: **This option is only used for type ''mac80211'' and ''madwifi'' (trunk)** |
-| ''disabled'' | boolean | no | ''1'' | Disables the radio adapter if set to ''1''. Removing this option or setting it to ''0'' will enable the adapter |+| ''disabled'' | boolean | no | ''0'' | Disables the radio adapter if set to ''1''. Removing this option or setting it to ''0'' will enable the adapter |
| ''channel'' | integer or "auto" | yes | ''auto'' | Specifies the wireless channel to use. In station mode the value ''auto'' is allowed, in access point mode an actual channel number must be given | | ''channel'' | integer or "auto" | yes | ''auto'' | Specifies the wireless channel to use. In station mode the value ''auto'' is allowed, in access point mode an actual channel number must be given |
| ''hwmode'' | string | no | //(driver default)// | Selects the wireless protocol to use, possible values are ''11b'', ''11bg'', ''11g'', ''11gdt'' (G + dynamic turbo, madwifi only), ''11gst'' (G turbo, broadcom only), ''11a'', ''11adt'' (A + dynamic turbo, madwifi only), ''11ast'' (A + static turbo, madwifi only), ''11fh'' (frequency hopping), ''11lrs'' (LRS mode, broadcom only), ''11ng'' (11N+11G, 2.4GHz, mac80211 only), ''11na'' (11N+11A, 5GHz, mac80211 only) or ''auto'' | | ''hwmode'' | string | no | //(driver default)// | Selects the wireless protocol to use, possible values are ''11b'', ''11bg'', ''11g'', ''11gdt'' (G + dynamic turbo, madwifi only), ''11gst'' (G turbo, broadcom only), ''11a'', ''11adt'' (A + dynamic turbo, madwifi only), ''11ast'' (A + static turbo, madwifi only), ''11fh'' (frequency hopping), ''11lrs'' (LRS mode, broadcom only), ''11ng'' (11N+11G, 2.4GHz, mac80211 only), ''11na'' (11N+11A, 5GHz, mac80211 only) or ''auto'' |
-| ''htmode'' | string | no | //(driver default)// | Specifies the channel width in ''11ng'' and ''11na'' mode, possible values are: ''HT20'' (single 20MHz channel), ''HT40-'' (2x 20MHz channels, primary/control channel is upper, secondary channel is below) or ''HT40+'' (2x 20MHz channels, primary/control channel is lower, secondary channel is above). Cf. [[doc/faq/faq.wireless#why.can.t.i.use.ht40.with.channel.11]]. \\ :!: **This option is only used for type ''mac80211''** |+| ''htmode'' | string | no | //(driver default)// | Specifies the channel width in 802.11n and 802.11ac mode, possible values are:\\ ''HT20'' (single 20MHz channel),\\ ''HT40-'' (2x 20MHz channels, primary/control channel is upper, secondary channel is below)\\ ''HT40+'' (2x 20MHz channels, primary/control channel is lower, secondary channel is above).\\ ''VHT40'' / ''VHT80'' / ''VHT160'' (channel width in 802.11ac, extra channels are picked according to the specification) \\ Cf. [[doc/faq/faq.wireless#why.can.t.i.use.ht40.with.channel.11]]. \\ :!: **This option is only used for type ''mac80211''** |
| ''chanbw'' | integer | no | 20 | Specifies a narrow channel width, possible values are: ''5'' (5MHz channel), ''10'' (10MHz channel) or ''20'' (20MHz channel). \\ :!: **Only supported by the ''ath9k''/''ath5k'' driver (since Attitude Adjustment)** | | ''chanbw'' | integer | no | 20 | Specifies a narrow channel width, possible values are: ''5'' (5MHz channel), ''10'' (10MHz channel) or ''20'' (20MHz channel). \\ :!: **Only supported by the ''ath9k''/''ath5k'' driver (since Attitude Adjustment)** |
| ''ht_capab'' | string | no | //(driver default)// | Specifies the available capabilities of the radio. The values are autodetected.\\ :!: **This option is only used for type ''mac80211''** | | ''ht_capab'' | string | no | //(driver default)// | Specifies the available capabilities of the radio. The values are autodetected.\\ :!: **This option is only used for type ''mac80211''** |
Line 46: Line 46:
| ''txantenna'' | integer | no | //(driver default)// | Specifies the //antenna for transmitting//, values are identical to ''rxantenna'' | | ''txantenna'' | integer | no | //(driver default)// | Specifies the //antenna for transmitting//, values are identical to ''rxantenna'' |
| ''antenna'' | string | no | //(driver default)//| Selects the antenna, possible values are ''vertical'' for internal vertical polarization, ''horizontal'' for internal horizontal polarization or ''external'' to use the external antenna connector\\ :!: **Only used on the [[toh:ubiquiti::nanostation|Ubiquiti NanoStation]] device family instead of the rxantenna/txantenna settings.** | | ''antenna'' | string | no | //(driver default)//| Selects the antenna, possible values are ''vertical'' for internal vertical polarization, ''horizontal'' for internal horizontal polarization or ''external'' to use the external antenna connector\\ :!: **Only used on the [[toh:ubiquiti::nanostation|Ubiquiti NanoStation]] device family instead of the rxantenna/txantenna settings.** |
-| ''macfilter'' | string | no | ''disable'' | Specifies the //mac filter policy//, ''disable'' to disable the filter, ''allow'' to treat it as whitelist or ''deny'' to treat it as blacklist.\\ :!: **Supported for the ''mac80211'' since [[https://dev.openwrt.org/changeset/25105/trunk|r25105]]** | +| ''country'' | varies | no | //(driver default)// | Specifies the country code, affects the available channels and transmission powers. For type ''broadcom'' a two letter country code is used (''EN'' or ''DE''). The ''madwifi'' driver expects a numeric code.
-| ''maclist'' | list of MAC addresses | no | //(none)// | List of MAC addresses to put into the mac filter.\\ :!: **Supported for the ''mac80211'' since [[https://dev.openwrt.org/changeset/25105/trunk|r25105]]** | +| ''country_ie'' | boolean | no | 1 if ''country'' is set, otherwise 0 | Enables IEEE 802.11d country IE (information element) advertisement in beacon and probe response frames. This IE contains the country code and channel/power map. Requires ''country''. |
-| ''country'' | varies | no | //(driver default)// | Specifies the country code, affects the available channels and transmission powers. For type ''broadcom'' a two letter country code is used (''EN'' or ''DE''). The ''madwifi'' driver expects a numeric code.\\ :!: **Not supported for the ''mac80211'' type yet (supported in trunk)** |+
| ''distance'' | integer | no | //(driver default)// | Distance between the ap and the furthest client in meters .\\ :!: **Only supported by ''madwifi'',  and the ''mac80211'' type (in trunk)**| | ''distance'' | integer | no | //(driver default)// | Distance between the ap and the furthest client in meters .\\ :!: **Only supported by ''madwifi'',  and the ''mac80211'' type (in trunk)**|
| ''noscan'' | boolean | no | ''0'' | Do not scan for overlapping BSSs in HT40+/- mode.\\ :!: **Only supported by ''mac80211''** \\ :!: **Turning this on will violate regulatory requirements!** | | ''noscan'' | boolean | no | ''0'' | Do not scan for overlapping BSSs in HT40+/- mode.\\ :!: **Only supported by ''mac80211''** \\ :!: **Turning this on will violate regulatory requirements!** |
Line 105: Line 104:
^ Name ^ Type ^ Required ^ Default ^ Description ^ ^ Name ^ Type ^ Required ^ Default ^ Description ^
| ''device'' | string | yes | //(first device id)// | Specifies the used wireless adapter, must refer to one of the defined ''wifi-device'' sections | | ''device'' | string | yes | //(first device id)// | Specifies the used wireless adapter, must refer to one of the defined ''wifi-device'' sections |
-| ''mode'' | string | yes | ''ap'' | Selects the //operation mode// of the wireless network, ''ap'' for Access Point, ''sta'' for managed (client) mode, ''adhoc'' for Ad-Hoc, ''wds'' for static WDS and ''monitor'' for monitor mode, ''mesh'' for 802.11s mesh mode \\ :!: **''mesh'' mode only supported by ''mac80211'' (in trunk)**|+| ''mode'' | string | yes | ''ap'' | Selects the //[[http://wireless.kernel.org/en/users/Documentation/modes|operation mode]]// of the wireless network interface controller (some are supported simultaneously by some drivers):\\ ''ap'' for Access Point,\\ ''sta'' for managed (client) mode,\\ ''adhoc'' for Ad-Hoc,\\ ''wds'' for static WDS, \\ ''monitor'' for monitor mode,\\ ''mesh'' for [[wp>IEEE 802.11s]] mesh mode\\ :!: **''mesh'' mode only supported by ''mac80211'' (in trunk)**|
| ''disabled'' | boolean | no | ''1'' | When set to 1, wireless network is disabled. | | ''disabled'' | boolean | no | ''1'' | When set to 1, wireless network is disabled. |
-| ''ssid'' | string | yes | ''OpenWrt'' | The broadcasted SSID of the wireless network |+| ''ssid'' | string | yes | ''OpenWrt'' | The broadcasted SSID of the wireless network (for managed mode the SSID of the network you're connecting to) |
| ''bssid'' | BSSID address | no | //(driver default)// | Override the BSSID of the network, only applicable in ''adhoc'' or ''sta'' mode. In ''wds'' mode specifies the BSSID of another AP to create WDS with. | | ''bssid'' | BSSID address | no | //(driver default)// | Override the BSSID of the network, only applicable in ''adhoc'' or ''sta'' mode. In ''wds'' mode specifies the BSSID of another AP to create WDS with. |
| ''mesh_id'' | Mesh ID | no | none | The Mesh ID as defined in IEEE 802.11s.  If set, the wireless interface will join this mesh network when brought up.  If not, it is necessary to invoke ''iw <iface> mesh join <mesh_id>'' to join a mesh after the interface is brought up. \\ :!: **Only supported by ''mac80211'' (in trunk)**| | ''mesh_id'' | Mesh ID | no | none | The Mesh ID as defined in IEEE 802.11s.  If set, the wireless interface will join this mesh network when brought up.  If not, it is necessary to invoke ''iw <iface> mesh join <mesh_id>'' to join a mesh after the interface is brought up. \\ :!: **Only supported by ''mac80211'' (in trunk)**|
Line 121: Line 120:
| ''key3'' | string | no | //(none)// | WEP passphrase or key #3 (selected by the index in ''key''), as in ''key1''. | | ''key3'' | string | no | //(none)// | WEP passphrase or key #3 (selected by the index in ''key''), as in ''key1''. |
| ''key4'' | string | no | //(none)// | WEP passphrase or key #4 (selected by the index in ''key''), as in ''key1''. | | ''key4'' | string | no | //(none)// | WEP passphrase or key #4 (selected by the index in ''key''), as in ''key1''. |
 +| ''macfilter'' | string | no | ''disable'' | Specifies the //mac filter policy//, ''disable'' to disable the filter, ''allow'' to treat it as whitelist or ''deny'' to treat it as blacklist.\\ :!: **Supported for the ''mac80211'' since [[https://dev.openwrt.org/changeset/25105/trunk|r25105]]** |
 +| ''maclist'' | list of MAC addresses | no | //(none)// | List of MAC addresses (divided by spaces) to put into the mac filter. |
| ''iapp_interface'' | string | no | //(none)// | Specifies a [[doc:uci:network#interfaces|network interface]] to be used for 802.11f (IAPP) - only enabled when defined. | | ''iapp_interface'' | string | no | //(none)// | Specifies a [[doc:uci:network#interfaces|network interface]] to be used for 802.11f (IAPP) - only enabled when defined. |
| ''rsn_preauth'' | boolean | no | ''0'' | Allow preauthentication for WPA2-EAP networks (and advertise it in WLAN beacons). Only works if the specified network interface is a bridge. | | ''rsn_preauth'' | boolean | no | ''0'' | Allow preauthentication for WPA2-EAP networks (and advertise it in WLAN beacons). Only works if the specified network interface is a bridge. |
-| ''ieee80211d'' | integer | no | 1 if ''country'' is set, otherwise 0 | Enables IEEE 802.11d country IE (information element) advertisement in beacon and probe response frames. This IE contains the country code and channel/power map. Requires ''country''. | 
| ''ieee80211w'' | integer | no | ''0'' | Enables MFP (802.11w) support (0 = disabled, 1 = optional, 2 = required).\\ :!: **Only supported by the ''ath9k'' driver (in trunk)**| | ''ieee80211w'' | integer | no | ''0'' | Enables MFP (802.11w) support (0 = disabled, 1 = optional, 2 = required).\\ :!: **Only supported by the ''ath9k'' driver (in trunk)**|
| ''ieee80211w_max_timeout'' | integer | no | //(hostapd default)// | Specifies the 802.11w Association SA Query maximum timeout.\\ :!: **Only supported by the ''ath9k'' driver (in trunk)** | | ''ieee80211w_max_timeout'' | integer | no | //(hostapd default)// | Specifies the 802.11w Association SA Query maximum timeout.\\ :!: **Only supported by the ''ath9k'' driver (in trunk)** |
Line 130: Line 130:
| ''macaddr'' | mac address | no | //(hostapd/driver default)// | Overrides the MAC address used for the wifi interface. | | ''macaddr'' | mac address | no | //(hostapd/driver default)// | Overrides the MAC address used for the wifi interface. |
| ''dtim_period'' | integer | no | //2 (hostapd default)// | Set the DTIM (delivery traffic information message) period. There will be one DTIM per this many beacon frames. This may be set between 1 and 255. This option only has an effect on ''ap'' wifi-ifaces. \\ :!: **Only supported by ''mac80211'' (in trunk)** | | ''dtim_period'' | integer | no | //2 (hostapd default)// | Set the DTIM (delivery traffic information message) period. There will be one DTIM per this many beacon frames. This may be set between 1 and 255. This option only has an effect on ''ap'' wifi-ifaces. \\ :!: **Only supported by ''mac80211'' (in trunk)** |
 +| ''short_preamble'' | boolean | no | //1// | Set optional use of short preamble \\ :!: **Supported for the ''mac80211'' since [[https://dev.openwrt.org/changeset/35565/trunk|r35565]]** |
| ''max_listen_int'' | integer | no | //65535 (hostapd default)// | Set the maximum allowed STA (client) listen interval. Association will be refused if a STA attempts to associate with a listen interval greater than this value. This option only has an effect on ''ap'' wifi-ifaces. \\ :!: **Only supported by ''mac80211'' (in trunk)** | | ''max_listen_int'' | integer | no | //65535 (hostapd default)// | Set the maximum allowed STA (client) listen interval. Association will be refused if a STA attempts to associate with a listen interval greater than this value. This option only has an effect on ''ap'' wifi-ifaces. \\ :!: **Only supported by ''mac80211'' (in trunk)** |
| ''mcast_rate'' | integer | no | //(driver default)// | Sets the fixed multicast rate, measured in kb/s. \\ :!: **Only supported by ''madwifi'', and ''mac80211'' (for type ''adhoc'' in trunk)** | | ''mcast_rate'' | integer | no | //(driver default)// | Sets the fixed multicast rate, measured in kb/s. \\ :!: **Only supported by ''madwifi'', and ''mac80211'' (for type ''adhoc'' in trunk)** |
| :!: See the [[doc:uci:wireless#WPA.Modes|WPA tables]] below for a full listing of WPA related options used for WPA2 Enterprise (802.1x) ||||| | :!: See the [[doc:uci:wireless#WPA.Modes|WPA tables]] below for a full listing of WPA related options used for WPA2 Enterprise (802.1x) |||||
| :!: See the [[doc:uci:wireless#WPS.Options|WPS Options]] below for a full listing of //Wi-Fi Protected Setup// options. ||||| | :!: See the [[doc:uci:wireless#WPS.Options|WPS Options]] below for a full listing of //Wi-Fi Protected Setup// options. |||||
 +| ''wds'' | boolean | no | ''0'' | This sets [[http://wireless.kernel.org/en/users/Documentation/iw#Using_4-address_for_AP_and_client_mode|4-address mode]] |
=== Madwifi Options === === Madwifi Options ===
Line 203: Line 205:
| ''acct_secret'' | //(none)// | Shared accounting RADIUS secret | | ''acct_secret'' | //(none)// | Shared accounting RADIUS secret |
| ''nasid'' | //(none)// | NAS ID to use for RADIUS authentication requests | | ''nasid'' | //(none)// | NAS ID to use for RADIUS authentication requests |
 +| ''dae_client'' | //(none)// | Dynamic Authorization Extension client. This client can send "Disconnect-Request" or "CoA-Request" packets to forcibly disconnect a client or change connection parameters. |
 +| ''dae_port'' | ''3799'' | Port the Dynamic Authorization Extension server listens on. |
 +| ''dae_secret'' | //(none)// | Shared DAE secret. |
 +:!: The ''dae'' options were introduced in [[https://dev.openwrt.org/changeset/37734/trunk|r37734]]
 +
 +:!: To enable Dynamic Authorization Extensions, both ''dae_client'' and ''dae_secret'' must be set.
=== WPA Enterprise (Client) === === WPA Enterprise (Client) ===
Line 224: Line 232:
Listing of [[http://en.wikipedia.org/wiki/Wi-Fi_Protected_Setup|Wi-Fi Protected Setup]] related options. Listing of [[http://en.wikipedia.org/wiki/Wi-Fi_Protected_Setup|Wi-Fi Protected Setup]] related options.
-:!: Support for WPS is provided by packages ''wpad'' and ''hostapd-utils''. Default package ''wpad-mini'' is not enough.\\ //Fixed with [[https://dev.openwrt.org/changeset/33393|changeset 33393]].//+:!: Support for WPS is provided by packages ''wpad'' and ''hostapd-utils''. Default package ''wpad-mini'' is not enough.\\
:!: WPS is possible only when encryption PSK is selected. :!: WPS is possible only when encryption PSK is selected.
Line 256: Line 264:
| ''rm -f /etc/config/wireless | ''rm -f /etc/config/wireless
wifi detect > /etc/config/wireless'' | wifi detect > /etc/config/wireless'' |
 +
 +''wifi detect'' gives UCI configuration entries for all installed interfaces that do not have UCI entries in ''/etc/config/wireless''. So you can remove ''/etc/config/wireless'' and run the above again to reset your wifi configuration.
===== 40 MHz channel (300 Mbps) ===== ===== 40 MHz channel (300 Mbps) =====
Line 269: Line 279:
===== Notes ===== ===== Notes =====
-Currently, the mac80211 family of wifi drivers does not support DFS. However, DFS is mandatory for many channels in the 5GHz band. If you provide a channel in your wireless config that requires DFS according to your country regulations, the radio1 device won't start up.+Currently, many members of the mac80211 family of wifi drivers do not support DFS. However, DFS is mandatory for many channels in the 5GHz band. If you provide a channel in your wireless config that requires DFS according to your country regulations, the radio1 device won't start up.
You can check that with <code bash>iw reg get</code> You can check that with <code bash>iw reg get</code>
If you provided DE as your country code (Germany), you'll notice that all channels in the 5GHz band require DFS, so you won't be able to use the radio1 device. A workaround is to choose FR, instead. This enables channels 36, 40, 44 and 48 at least. However, it might be illegal to use a foreign country code. If you provided DE as your country code (Germany), you'll notice that all channels in the 5GHz band require DFS, so you won't be able to use the radio1 device. A workaround is to choose FR, instead. This enables channels 36, 40, 44 and 48 at least. However, it might be illegal to use a foreign country code.
Line 279: Line 289:
After saving your wireless config, execute this command to force the system to reread the configs and bring up the radios: After saving your wireless config, execute this command to force the system to reread the configs and bring up the radios:
<code>wifi</code> <code>wifi</code>
 +
 +==== DFS on 5GHz ====
 +
 +DFS is supported in AP / master mode in ath9k in Barrier Breaker (TODO: since svn ??? ).
 +Patches for IBSS / Ad-Hoc mode were posted in linux-wireless mailing list: [[http://marc.info/?l=linux-wireless&m=137823021907805&w=2|2013-09-03 [PATCH 0/4] add IBSS-DFS support]].
 +
 +Output of //iw phy <5ghz> info//
 +<code>
 + Frequencies:
 + * 5180 MHz [36] (15.0 dBm)
 + * 5200 MHz [40] (19.0 dBm)
 + * 5220 MHz [44] (15.0 dBm)
 + * 5240 MHz [48] (15.0 dBm)
 + * 5260 MHz [52] (15.0 dBm) (radar detection)
 +   DFS state: usable (for 2731982 sec)
 + * 5280 MHz [56] (15.0 dBm) (radar detection)
 +   DFS state: usable (for 2731982 sec)
 + * 5300 MHz [60] (15.0 dBm) (radar detection)
 +   DFS state: usable (for 2731982 sec)
 + * 5320 MHz [64] (15.0 dBm) (radar detection)
 +   DFS state: usable (for 2731982 sec)
 + * 5500 MHz [100] (15.0 dBm) (radar detection)
 +   DFS state: usable (for 2731982 sec)
 + * 5520 MHz [104] (19.0 dBm) (radar detection)
 +   DFS state: usable (for 2731982 sec)
 +</code>
===== Troubleshooting ===== ===== Troubleshooting =====

Back to top

doc/uci/wireless.1354824472.txt.bz2 · Last modified: 2012/12/06 21:07 by hnyman