Opennet Firmware
 Alle Dateien Funktionen Variablen Gruppen Seiten
luci_show_dfs_channels.patch
gehe zur Dokumentation dieser Datei
1 do not hide DFS channels in luci web-interface
2 
3 see https://dev.openwrt.org/ticket/14919
4 
5 Channels with the "restricted" flag are not shown by luci.
6 Any channel with one of the following attributes is marked as "restricted" by
7 iwinfo:
8 * NL80211_FREQUENCY_ATTR_PASSIVE_SCAN
9 * NL80211_FREQUENCY_ATTR_NO_IBSS
10 * NL80211_FREQUENCY_ATTR_RADAR
11 
12 The patch removes NL80211_FREQUENCY_ATTR_RADAR from the above list. Thus DFS
13 channels are displayed.
14 
15 Sadly no visual indication is given if the current wireless driver supports DFS.
16 Thus hostapd may refuse to select the configured channel without any further
17 explanation.
18 --- a/openwrt/package/network/utils/iwinfo/src/iwinfo_nl80211.c
19 +++ b/openwrt/package/network/utils/iwinfo/src/iwinfo_nl80211.c
20 @@ -2160,8 +2160,7 @@ static int nl80211_get_freqlist_cb(struc
21 
22  e->restricted = (
23  freqs[NL80211_FREQUENCY_ATTR_PASSIVE_SCAN] ||
24 - freqs[NL80211_FREQUENCY_ATTR_NO_IBSS] ||
25 - freqs[NL80211_FREQUENCY_ATTR_RADAR]
26 + freqs[NL80211_FREQUENCY_ATTR_NO_IBSS]
27  ) ? 1 : 0;
28 
29  e++;