Il 12/06/2014 11:26, Gioacchino Mazzurco ha scritto:
On Wednesday 11 June 2014 18:56:34 Ilario Gelmetti
wrote:
if the country code is Italy no LiMe network is
displayed [1];
if the country code is Uzbekistan I can see the LiMe network [2].
I put the LiMe network on a channel (40, 5.2GHz) allowed in Italy,
so it
should be visible (if you notice, in [1] you can see that 5.2GHz is
in
the list of frequencies scanned by AirOS). For reference I added
another
NSM5 running OpenWrt in ap mode.
Do you have any idea of why this happens?
Maybe channel 40 is DFS only in italy ?
ath9k doesn't support DFS at moment, so if you wanna use 5GHz DFS
channels in
public places and be legal you sadly have to use proprietary software
on your
radio device, while using libre-mesh in the router doing a ground
routing
setup (at your home you can use the picostation as ground-router)
I don't think it's a problem related to the channel, I've seen this
problem using channels 36, 40, 44 and 48 with libre-mesh and with openwrt.
The result is always:
AirOS with Uzbekistan country code: site survey shows both ap from
OpenWrt and libre-mesh
AirOS with Italian country code: site survey shows only ap from OpenWrt
Looking at configuration of NSM5 with OpenWrt and NSM5 with LiMe they
seems identical.
I reproduced the problem installing libre-mesh on another NSM5.
I'm using libre-mesh branch feature/8021ad on top of openwrt trunk
(r41163) and AirOS 5.5.8.
Here you are some data:
--~--~--~--~--~--~--~--
root@LiMeNode-ef8bda:~# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11a'
option path 'pci0000:00/0000:00:00.0'
option htmode 'HT20'
option disabled '0'
option channel '48'
config wifi-iface 'lm_wlan0_ap_radio0'
option mode 'ap'
option device 'radio0'
option ifname 'wlan0_ap'
option network 'lan'
option ssid 'LiMe'
config wifi-iface 'lm_wlan0_adhoc_radio0'
option mode 'adhoc'
option device 'radio0'
option ifname 'wlan0_adhoc'
option network 'lm_wlan0_adhoc'
option mcast_rate '6000'
option bssid 'ca:fe:00:c0:ff:ee'
option mcast_rate_2ghz '24000'
option ssid 'libre-mesh'
--~--~--~--~--~--~--~--
root@OpenWrt:~# cat /etc/config/wireless
config wifi-device radio0
option type mac80211
option channel 48
option hwmode 11a
option path 'pci0000:00/0000:00:00.0'
option htmode HT20
option disabled 0
config wifi-iface
option device radio0
option network lan
option mode ap
option ssid OpenWrt
option encryption none
--~--~--~--~--~--~--~--
root@LiMeNode-ef8bda:~# iwinfo
wlan0_adhoc ESSID: "libre-mesh"
Access Point: CA:FE:00:C0:FF:EE
Mode: Ad-Hoc Channel: 48 (5.240 GHz)
Tx-Power: 22 dBm Link Quality: unknown/70
Signal: unknown Noise: unknown
Bit Rate: unknown
Encryption: unknown
Type: nl80211 HW Mode(s): 802.11an
Hardware: 168C:002A 0777:E805 [Ubiquiti Bullet M5]
TX power offset: 5 dB
Frequency offset: none
Supports VAPs: yes PHY name: phy0
wlan0_ap ESSID: "LiMe"
Access Point: DE:9F:DB:EE:8B:DA
Mode: Master Channel: 48 (5.240 GHz)
Tx-Power: 22 dBm Link Quality: unknown/70
Signal: unknown Noise: unknown
Bit Rate: unknown
Encryption: none
Type: nl80211 HW Mode(s): 802.11an
Hardware: 168C:002A 0777:E805 [Ubiquiti Bullet M5]
TX power offset: 5 dB
Frequency offset: none
Supports VAPs: yes PHY name: phy0
--~--~--~--~--~--~--~--
root@OpenWrt:~# iwinfo
wlan0 ESSID: "OpenWrt"
Access Point: DC:9F:DB:2C:E4:34
Mode: Master Channel: 48 (5.240 GHz)
Tx-Power: 22 dBm Link Quality: unknown/70
Signal: unknown Noise: -95 dBm
Bit Rate: unknown
Encryption: none
Type: nl80211 HW Mode(s): 802.11an
Hardware: 168C:002A 0777:E805 [Ubiquiti Bullet M5]
TX power offset: 5 dB
Frequency offset: none
Supports VAPs: yes PHY name: phy0
--~--~--~--~--~--~--~--
root@LiMeNode-ef8bda:~# iw wlan0_ap info
Interface wlan0_ap
ifindex 17
wdev 0x3
addr de:9f:db:ee:8b:da
ssid LiMe
type AP
wiphy 0
channel 48 (5240 MHz), width: 20 MHz, center1: 5240 MHz
--~--~--~--~--~--~--~--
root@OpenWrt:~# iw wlan0 info
Interface wlan0
ifindex 6
wdev 0x2
addr dc:9f:db:2c:e4:34
ssid OpenWrt
type AP
wiphy 0
channel 48 (5240 MHz), width: 20 MHz, center1: 5240 MHz
--~--~--~--~--~--~--~--
root@LiMeNode-ef8bda:~# iw phy0 info
Wiphy phy0
max # scan SSIDs: 4
max scan IEs length: 2261 bytes
Coverage class: 0 (up to 0m)
Device supports AP-side u-APSD.
Device supports T-DLS.
Available Antennas: TX 0x3 RX 0x3
Configured Antennas: TX 0x3 RX 0x3
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* WDS
* monitor
* mesh point
* P2P-client
* P2P-GO
Band 2:
Capabilities: 0x11ce
HT20/HT40
SM Power Save disabled
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 3839 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 8 usec (0x06)
HT TX/RX MCS rate indexes supported: 0-15
Frequencies:
* 5180 MHz [36] (17.0 dBm)
* 5200 MHz [40] (17.0 dBm)
* 5220 MHz [44] (17.0 dBm)
* 5240 MHz [48] (17.0 dBm)
* 5260 MHz [52] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 1311 sec)
* 5280 MHz [56] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 1311 sec)
* 5300 MHz [60] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 1311 sec)
* 5320 MHz [64] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 1311 sec)
* 5500 MHz [100] (disabled)
* 5520 MHz [104] (disabled)
* 5540 MHz [108] (disabled)
* 5560 MHz [112] (disabled)
* 5580 MHz [116] (disabled)
* 5600 MHz [120] (disabled)
* 5620 MHz [124] (disabled)
* 5640 MHz [128] (disabled)
* 5660 MHz [132] (disabled)
* 5680 MHz [136] (disabled)
* 5700 MHz [140] (disabled)
* 5745 MHz [149] (30.0 dBm)
* 5765 MHz [153] (30.0 dBm)
* 5785 MHz [157] (30.0 dBm)
* 5805 MHz [161] (30.0 dBm)
* 5825 MHz [165] (30.0 dBm)
valid interface combinations:
* #{ managed, WDS } <= 2048, #{ AP, mesh point } <= 8, #{ P2P-client,
P2P-GO } <= 1, #{ IBSS } <= 1,
total <= 2048, #channels <= 1, STA/AP BI must match
HT Capability overrides:
* MCS: ff ff ff ff ff ff ff ff ff ff
* maximum A-MSDU length
* supported channel width
* short GI for 40 MHz
* max A-MPDU length exponent
* min MPDU start spacing
--~--~--~--~--~--~--~--
root@OpenWrt:~# iw phy0 info
Wiphy phy0
max # scan SSIDs: 4
max scan IEs length: 2261 bytes
Coverage class: 0 (up to 0m)
Device supports AP-side u-APSD.
Device supports T-DLS.
Available Antennas: TX 0x3 RX 0x3
Configured Antennas: TX 0x3 RX 0x3
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* WDS
* monitor
* mesh point
* P2P-client
* P2P-GO
Band 2:
Capabilities: 0x11ce
HT20/HT40
SM Power Save disabled
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 3839 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 8 usec (0x06)
HT TX/RX MCS rate indexes supported: 0-15
Frequencies:
* 5180 MHz [36] (17.0 dBm)
* 5200 MHz [40] (17.0 dBm)
* 5220 MHz [44] (17.0 dBm)
* 5240 MHz [48] (17.0 dBm)
* 5260 MHz [52] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 895 sec)
* 5280 MHz [56] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 895 sec)
* 5300 MHz [60] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 895 sec)
* 5320 MHz [64] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 895 sec)
* 5500 MHz [100] (disabled)
* 5520 MHz [104] (disabled)
* 5540 MHz [108] (disabled)
* 5560 MHz [112] (disabled)
* 5580 MHz [116] (disabled)
* 5600 MHz [120] (disabled)
* 5620 MHz [124] (disabled)
* 5640 MHz [128] (disabled)
* 5660 MHz [132] (disabled)
* 5680 MHz [136] (disabled)
* 5700 MHz [140] (disabled)
* 5745 MHz [149] (30.0 dBm)
* 5765 MHz [153] (30.0 dBm)
* 5785 MHz [157] (30.0 dBm)
* 5805 MHz [161] (30.0 dBm)
* 5825 MHz [165] (30.0 dBm)
valid interface combinations:
* #{ managed, WDS } <= 2048, #{ AP, mesh point } <= 8, #{ P2P-client,
P2P-GO } <= 1, #{ IBSS } <= 1,
total <= 2048, #channels <= 1, STA/AP BI must match
HT Capability overrides:
* MCS: ff ff ff ff ff ff ff ff ff ff
* maximum A-MSDU length
* supported channel width
* short GI for 40 MHz
* max A-MPDU length exponent
* min MPDU start spacing
differences: only in lines with DFS state: usable (for # sec)
--~--~--~--~--~--~--~--
root@LiMeNode-ef8bda:~# iw reg get
country US: DFS-FCC
(2402 - 2472 @ 40), (N/A, 30)
(5170 - 5250 @ 80), (N/A, 17)
(5250 - 5330 @ 80), (N/A, 23), DFS
(5735 - 5835 @ 80), (N/A, 30)
(57240 - 63720 @ 2160), (N/A, 40)
--~--~--~--~--~--~--~--
root@OpenWrt:~# iw reg get
country US: DFS-FCC
(2402 - 2472 @ 40), (N/A, 30)
(5170 - 5250 @ 80), (N/A, 17)
(5250 - 5330 @ 80), (N/A, 23), DFS
(5735 - 5835 @ 80), (N/A, 30)
(57240 - 63720 @ 2160), (N/A, 40)
--~--~--~--~--~--~--~--
root@LiMeNode-ef8bda:~# iw dev wlan0_ap scan
BSS dc:9f:db:2c:e4:34(on wlan0_ap)
TSF: 2028442237 usec (0d, 00:33:48)
freq: 5240
beacon interval: 100 TUs
capability: ESS ShortPreamble (0x0021)
signal: -77.00 dBm
last seen: 10 ms ago
Information elements from Probe Response frame:
SSID: OpenWrt
Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0
DS Parameter set: channel 48
HT capabilities:
Capabilities: 0x11cc
HT20
SM Power Save disabled
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 3839 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 8 usec (0x06)
HT TX/RX MCS rate indexes supported: 0-15
HT operation:
* primary channel: 48
* secondary channel offset: no secondary
* STA channel width: 20 MHz
* RIFS: 0
* HT protection: no
* non-GF present: 0
* OBSS non-GF present: 0
* dual beacon: 0
* dual CTS protection: 0
* STBC beacon: 0
* L-SIG TXOP Prot: 0
* PCO active: 0
* PCO phase: 0
Extended capabilities: 6
WMM: * Parameter version 1
* BE: CW 15-1023, AIFSN 3
* BK: CW 15-1023, AIFSN 7
* VI: CW 7-15, AIFSN 2, TXOP 3008 usec
* VO: CW 3-7, AIFSN 2, TXOP 1504 usec
--~--~--~--~--~--~--~--
root@OpenWrt:~# iw dev wlan0 scan
BSS de:9f:db:ee:8b:da(on wlan0)
TSF: 2327155456 usec (0d, 00:38:47)
freq: 5240
beacon interval: 100 TUs
capability: ESS ShortPreamble (0x0021)
signal: -80.00 dBm
last seen: 770 ms ago
SSID: LiMe
Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0
DS Parameter set: channel 48
HT capabilities:
Capabilities: 0x11cc
HT20
SM Power Save disabled
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 3839 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 8 usec (0x06)
HT TX/RX MCS rate indexes supported: 0-15
HT operation:
* primary channel: 48
* secondary channel offset: no secondary
* STA channel width: 20 MHz
* RIFS: 0
* HT protection: no
* non-GF present: 0
* OBSS non-GF present: 0
* dual beacon: 0
* dual CTS protection: 0
* STBC beacon: 0
* L-SIG TXOP Prot: 0
* PCO active: 0
* PCO phase: 0
Extended capabilities: 6
WMM: * Parameter version 1
* BE: CW 15-1023, AIFSN 3
* BK: CW 15-1023, AIFSN 7
* VI: CW 7-15, AIFSN 2, TXOP 3008 usec
* VO: CW 3-7, AIFSN 2, TXOP 1504 usec
--
Ilario Gelmetti
iochesonome(a)gmail.com
ilario.gelmetti(a)sns.it