Jetson TX2 WIFI AP country code

Hi, We are using Jetson TX2 Wifi in AP mode using hostapd.
We are trying to configure country code on AP (Ex: GB), but the AP wifi clients always see country code as “XT” .
Could you please help us understand this behaviour ? how can we advertise correct country code ?

====region configured on AP
jetson-tx2# iw reg get
global
country GB: DFS-ETSI
(2400 - 2483 @ 40), (N/A, 20), (N/A)
(5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
(5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
(5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
(5725 - 5875 @ 80), (N/A, 13), (N/A)
(57000 - 71000 @ 2160), (N/A, 40), (N/A)

=== what seen on client
Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0
TIM: DTIM Count 1 DTIM Period 2 Bitmap Control 0x0 Bitmap[0] 0x0
Country: XT Environment: Indoor/Outdoor
Channels [36 - 36] @ 23 dBm
Channels [40 - 40] @ 23 dBm
Channels [44 - 44] @ 23 dBm
Channels [48 - 48] @ 23 dBm
Channels [52 - 52] @ 23 dBm
Channels [56 - 56] @ 23 dBm
Channels [60 - 60] @ 23 dBm
Channels [64 - 64] @ 23 dBm

I don’t quite understand this question. How did you get the country code on your client? What command did you use?

Hi @WayneWWW , One of my client device is Ubuntu machine , on which I tried to scan the wifi network using “iw dev wlp108s0 scan”, and the other machine is MAC on which I used network diagnostic → scan to scan the available wifi networks

MAC output:

‘######’ ({length = 10, bytes = 0x4453312d386238653230}), bssid=#:#:#:#:#:#, channel=[48 (80MHz)], cc=XT, phy=11a/n/ac (0x92), rssi=-46, rsn=[mcast=aes_ccm, bip=none, ucast={ aes_ccm }, auths={ psk }, mfp=no, caps=0xc], wpa=(null), wapi=no, wep=no, ibss=no, ph=no, swap=no, hs20=no

Ubuntu “iw dev wlp108s0 scan” - output

BSS ########(on wlp108s0) – associated
TSF: 49049667 usec (0d, 00:00:49)
freq: 5240
beacon interval: 100 TUs
capability: ESS Privacy SpectrumMgmt (0x0111)
signal: -42.00 dBm
last seen: 200 ms ago
SSID: ########
Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0
TIM: DTIM Count 1 DTIM Period 2 Bitmap Control 0x0 Bitmap[0] 0x0
Country: XT Environment: Indoor/Outdoor
Channels [36 - 36] @ 23 dBm
Channels [40 - 40] @ 23 dBm
Channels [44 - 44] @ 23 dBm
Channels [48 - 48] @ 23 dBm
Channels [52 - 52] @ 23 dBm
Channels [56 - 56] @ 23 dBm
Channels [60 - 60] @ 23 dBm
Channels [64 - 64] @ 23 dBm
Power constraint: 0 dB
TPC report: TX power: 12 dBm
RSN: * Version: 1
* Group cipher: CCMP
* Pairwise ciphers: CCMP
* Authentication suites: PSK
* Capabilities: 16-PTKSA-RC 1-GTKSA-RC (0x000c)
HT capabilities:
Capabilities: 0x6f
RX LDPC
HT20/HT40
SM Power Save disabled
RX HT20 SGI
RX HT40 SGI
No RX STBC
Max AMSDU length: 3839 bytes
No DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 4 usec (0x05)
HT RX MCS rate indexes supported: 0-15
HT TX MCS rate indexes are undefined
HT operation:
* primary channel: 48
* secondary channel offset: below
* STA channel width: any
* RIFS: 1
* HT protection: no
* non-GF present: 1
* 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:
* Extended Channel Switching
* Interworking
* QoS Map
* Operating Mode Notification
* Max Number Of MSDUs In A-MSDU is unlimited
VHT capabilities:
VHT Capabilities (0x0f815832):
Max MPDU length: 11454
Supported Channel Width: neither 160 nor 80+80
RX LDPC
short GI (80 MHz)
SU Beamformer
SU Beamformee
VHT RX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT RX highest supported: 0 Mbps
VHT TX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT TX highest supported: 0 Mbps
VHT operation:
* channel width: 1 (80 MHz)
* center freq segment 1: 42
* center freq segment 2: 0
* VHT basic MCS set: 0x0000
WMM: * Parameter version 1
* u-APSD
* 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

Hello,

Would you see different country code from the client if you change to other AP? For example, using mobile phone as AP and this client to scan it.

Hi @WayneWWW , yes, I am able to detect other APs country code properly .

Ex:
‘eduroam’ ({length = 7, bytes = 0x656475726f616d}), bssid=XX:XX:XX:XX:XX:XX, channel=[6 (20MHz)], cc=GB, phy=11g/n (0x18), rssi=-83, rsn=[mcast=aes_ccm, bip=none, ucast={ aes_ccm }, auths={ 8021x ft_8021x }, mfp=no, caps=0x28], wpa=(null), wapi=no, wep=no, ibss=no, ph=no, swap=no, hs20=no

‘VM3610754’ ({length = 9, bytes = 0x564d33363130373534}), bssid=XX:XX:XX:XX:XX:XX channel=[44 (80MHz)], cc=GB, phy=11a/n/ac (0x92), rssi=-85, rsn=[mcast=tkip, bip=none, ucast={ aes_ccm tkip }, auths={ psk }, mfp=no, caps=0x0], wpa=[mcast=tkip, ucast={ ccmp tkip }, auths={ psk }], wapi=no, wep=no, ibss=no, ph=no, swap=no, hs20=no

I can’t answer, but one thing which might be useful to know is that (so far as I know) all of the Jetsons make available only the channels which are valid for all parts of the world. Rather than certification for all of the different parts of the world I am under the impression that only this subset is ever allowed, and it is possible there is no access to changing this (changing would probably violate regulatory compliance laws).

Note: You might have better luck with an add-on WiFi if you need something specific to a particular country.

Hello,

What does your hostapd.conf look like? Do you write this country code in your hostapd.conf?

Hi @WayneWWW , hostapd.conf dump

beacon_int=100

ssid=XXX

interface=wlan0

driver=nl80211

channel=48

ctrl_interface=/tmp/create_ap.wlan0.conf.su5sMHkL/hostapd_ctrl

ctrl_interface_group=0

ignore_broadcast_ssid=0

ap_isolate=0

country_code=GB

ieee80211d=1

hw_mode=a

ieee80211ac=1

wmm_enabled=1

wpa=2

wpa_psk=xyz

wpa_key_mgmt=WPA-PSK

wpa_pairwise=TKIP CCMP

rsn_pairwise=CCMP

Hi,

iw reg get is displaying GB after starting hostap but country code on these platforms are OTP locked so changing it in the hostapd conf file is not going to change actual country code in wifi firmware.

That is why you see XT from the scan result. XT on TX2 is the NV default country code that maps to worldwide setting.
We don’t support to change that because changing it will invalidate WiFi certification we have got from certification authority.

Hi @WayneWWW , thanks for providing reason for why we see XT on scan results.
I also found that HT capabilities shown on AP with “iw list” differs from the capabilities scanned by clients.
Shell I raise another issue for discussion ?
on AP:

Band 1:
	Capabilities: 0x1020
		**HT20**
		Static SM Power Save
		RX HT20 SGI
		No RX STBC
		Max AMSDU length: 3839 bytes
		DSSS/CCK HT40

On client scan results:

HT capabilities:
Capabilities: 0x6f
RX LDPC
HT20/HT40
SM Power Save disabled
RX HT20 SGI
RX HT40 SGI
No RX STBC
Max AMSDU length: 3839 bytes
No DSSS/CCK HT40

Hi,

I know you have another thread about the HT40/80 issue. Still checking this internally. Will update once get the information.

Sure, will watch other thread for update @WayneWWW , for the support.