Hi All.
Anyone using antenna_gain in their /etc/config/wireless?
Mine isn't firing properly on my msm466 flashed on msm460.
After a sanity check before I go digging deeper.
Example config:
root@OpenWrt-J9622-testap:~# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'ffe09000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
option channel 'auto'
option channels '1,5,9,13'
option band '2g'
option htmode 'HT20'
option cell_density '0'
option country 'AU'
option txpower '22'
option distance '1000'
option antenna_gain '22'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'leglan'
option mode 'ap'
option ssid 'OpenWrt-gaintest0'
option encryption 'sae'
option key 'redacted'
option ieee80211r '1'
option ft_over_ds '0'
config wifi-device 'radio1'
option type 'mac80211'
option path 'ffe0a000.pcie/pci0001:02/0001:02:00.0/0001:03:00.0'
option channel 'auto'
option channels '157-165,132-144'
option band '5g'
option htmode 'HT40'
option country 'AU'
option cell_density '0'
option txpower '18'
option distance '1000'
option antenna_gain '22'
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'leglan'
option mode 'ap'
option ssid 'OpenWrt-gaintest2'
option encryption 'sae'
option key 'redacted'
option ieee80211r '1'
option ft_over_ds '0'
For example after reboot the power is this:
oot@OpenWrt-J9622-testap:~# uptime
20:07:52 up 0 min, load average: 0.68, 0.18, 0.06
root@OpenWrt-J9622-testap:~# iwinfo
phy0-ap0 ESSID: "OpenWrt-gaintest0"
Access Point: 50:65:F3:DB:57:20
Mode: Master Channel: 5 (2.432 GHz) HT Mode: HT20
Center Channel 1: 5 2: unknown
Tx-Power: 22 dBm Link Quality: unknown/70
Signal: unknown Noise: -92 dBm
Bit Rate: unknown
Encryption: WPA3 SAE (CCMP)
Type: nl80211 HW Mode(s): 802.11a/b/g/n
Hardware: 168C:0030 168C:3114 [Atheros AR9390]
TX power offset: none
Frequency offset: none
Supports VAPs: yes PHY name: phy0
phy1-ap0 ESSID: "OpenWrt-gaintest2"
Access Point: 50:65:F3:DB:57:30
Mode: Master Channel: 161 (5.805 GHz) HT Mode: HT20
Center Channel 1: 161 2: unknown
Tx-Power: 17 dBm Link Quality: unknown/70
Signal: unknown Noise: -93 dBm
Bit Rate: unknown
Encryption: WPA3 SAE (CCMP)
Type: nl80211 HW Mode(s): 802.11a/b/g/n
Hardware: 168C:0030 168C:3114 [Atheros AR9390]
TX power offset: none
Frequency offset: none
Supports VAPs: yes PHY name: phy1
root@OpenWrt-J9622-testap:~#
What i'd expect. For example after setting it with iw manually:
root@OpenWrt-J9622-testap:~# iw phy0 set antenna_gain 22
root@OpenWrt-J9622-testap:~# iw phy1 set antenna_gain 22
root@OpenWrt-J9622-testap:~# iwinfo
phy0-ap0 ESSID: "OpenWrt-gaintest0"
Access Point: 50:65:F3:DB:57:20
Mode: Master Channel: 5 (2.432 GHz) HT Mode: HT20
Center Channel 1: 5 2: unknown
Tx-Power: 14 dBm Link Quality: unknown/70
Signal: unknown Noise: -89 dBm
Bit Rate: unknown
Encryption: WPA3 SAE (CCMP)
Type: nl80211 HW Mode(s): 802.11a/b/g/n
Hardware: 168C:0030 168C:3114 [Atheros AR9390]
TX power offset: none
Frequency offset: none
Supports VAPs: yes PHY name: phy0
phy1-ap0 ESSID: "OpenWrt-gaintest2"
Access Point: 50:65:F3:DB:57:30
Mode: Master Channel: 161 (5.805 GHz) HT Mode: HT20
Center Channel 1: 161 2: unknown
Tx-Power: 14 dBm Link Quality: unknown/70
Signal: unknown Noise: -93 dBm
Bit Rate: unknown
Encryption: WPA3 SAE (CCMP)
Type: nl80211 HW Mode(s): 802.11a/b/g/n
Hardware: 168C:0030 168C:3114 [Atheros AR9390]
TX power offset: none
Frequency offset: none
Supports VAPs: yes PHY name: phy1
root@OpenWrt-J9622-testap:~#