13 Nov 2020

WiFi Profiling a IPhone 12 Pro Max (Australia)

 Iphone 12 Pro Max  (Australia)


802.11  k,r,v,w  Supported

802.11n  Supported (2ss)

802.11ac Supported (2ss), SU BF supported, MU BF not supported

802.11ax Supported (Draft)

Max Power 12dbm

Min Power -7dbm

Supported 5Ghz Channels

36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 149, 153, 157, 161, 165


UPDATE  the supported channels is not correct due to a bug in the WLANPI profiler not taking into account of the regulatory Domain.


Supported 5Ghz Channels

36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 132,128, 140, 144, 149, 153, 157, 161, 165


Trying to work out if there is a way for the profiler to determine the country code.

The profiler could use the country code from  /etc/hostapd.conf on WLAN PI   ?  the user would need to set correctly 


here is pcap  https://www.dropbox.com/s/zjtf02k3atlej2y/4a-d3-49-71-07-c6_5.8GHz.pcap?dl=0


I saw this 

https://patents.google.com/patent/US20080259882A1/en


Could 802.11d help here....

IEEE 802.11d-2001 is an amendment to the IEEE 802.11 specification that adds support for "additional regulatory domains". This support includes the addition of a country information element to beacons, probe requests, and probe responses

Not seeing this in the pcap


And was asked by Josh Schmelzle try and get the Phone to connect to channel 124

I tried to set the WLAN PI to channel 124  in hotspot mode using the comfast adaptor  regardless of country code this was not possible   (and should not be possible is Australia !) 

 See below for DIAG from 

sudo hostapd -d /etc/hostapd.conf


CHANGE TO AU


BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)

wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE

Previous country code CA, new country code AU

Continue interface setup after channel list update

ctrl_iface not configured!

random: Got 20/20 bytes from /dev/random

nl80211: Drv Event 36 (NL80211_CMD_REG_CHANGE) received for wlan0

nl80211: Regulatory domain change

 * initiator=1

 * type=0

 * alpha2=AU

wlan0: Event CHANNEL_LIST_CHANGED (27) received

Channel list updated - continue setup

nl80211: Regulatory information - country=AU (DFS-ETSI)

nl80211: 2402-2482 @ 40 MHz 20 mBm

nl80211: 5170-5250 @ 80 MHz 17 mBm

nl80211: 5250-5330 @ 80 MHz 24 mBm (DFS)

nl80211: 5490-5710 @ 160 MHz 24 mBm (DFS)

nl80211: 5735-5835 @ 80 MHz 30 mBm

nl80211: Added 802.11b mode based on 802.11g information

nl80211: Mode IEEE 802.11g: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 24                             62 2467 2472 2484

nl80211: Mode IEEE 802.11a: 5180 5200 5220 5240 5260[RADAR] 5280[RADAR] 5300[RAD                             AR] 5320[RADAR] 5500[RADAR] 5520[RADAR] 5540[RADAR] 5560[RADAR] 5580[RADAR] 5600                             [RADAR] 5620[RADAR] 5640[RADAR] 5660[RADAR] 5680[RADAR]

nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 24                             62 2467 2472 2484

Channel 124 (primary) not allowed for AP mode, flags: 0x7807979 RADAR

wlan0: IEEE 802.11 Configured channel (124) not found from the channel list of c                             urrent mode (2) IEEE 802.11a

wlan0: IEEE 802.11 Hardware does not support configured channel

Could not select hw_mode and channel. (-3)

wlan0: interface state COUNTRY_UPDATE->DISABLED

wlan0: AP-DISABLED



CHANGE TO CA



wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE

Previous country code AU, new country code CA

Continue interface setup after channel list update

ctrl_iface not configured!

random: Got 20/20 bytes from /dev/random

nl80211: Drv Event 36 (NL80211_CMD_REG_CHANGE) received for wlan0

nl80211: Regulatory domain change

 * initiator=1

 * type=0

 * alpha2=CA

wlan0: Event CHANNEL_LIST_CHANGED (27) received

Channel list updated - continue setup

nl80211: Regulatory information - country=CA (DFS-FCC)

nl80211: 2402-2472 @ 40 MHz 30 mBm

nl80211: 5170-5250 @ 80 MHz 17 mBm

nl80211: 5250-5330 @ 80 MHz 24 mBm (DFS)

nl80211: 5490-5600 @ 80 MHz 24 mBm (DFS)

nl80211: 5650-5730 @ 80 MHz 24 mBm (DFS)

nl80211: 5735-5835 @ 80 MHz 30 mBm

nl80211: Added 802.11b mode based on 802.11g information

nl80211: Mode IEEE 802.11g: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484

nl80211: Mode IEEE 802.11a: 5180 5200 5220 5240 5260[RADAR] 5280[RADAR] 5300[RADAR] 5320[RADAR] 5500[RADAR] 5520[RADAR] 5540[RADAR] 5560[RADAR] 5580[RADAR] 5600[RADAR] 5620[RADAR] 5640[RADAR] 5660[RADAR] 5680[RADAR]

nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484

Channel 124 (primary) not allowed for AP mode, flags: 0x109 RADAR

wlan0: IEEE 802.11 Configured channel (124) not found from the channel list of current mode (2) IEEE 802.11a

wlan0: IEEE 802.11 Hardware does not support configured channel

Could not select hw_mode and channel. (-3)

wlan0: interface state COUNTRY_UPDATE->DISABLED

wlan0: AP-DISABLED


CHANGE TO US


BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)

wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE

Previous country code CA, new country code US

Continue interface setup after channel list update

ctrl_iface not configured!

random: Got 20/20 bytes from /dev/random

nl80211: Drv Event 36 (NL80211_CMD_REG_CHANGE) received for wlan0

nl80211: Regulatory domain change

 * initiator=1

 * type=0

 * alpha2=US

wlan0: Event CHANNEL_LIST_CHANGED (27) received

Channel list updated - continue setup

nl80211: Regulatory information - country=US (DFS-FCC)

nl80211: 2402-2472 @ 40 MHz 30 mBm

nl80211: 5170-5250 @ 80 MHz 23 mBm

nl80211: 5250-5330 @ 80 MHz 23 mBm (DFS)

nl80211: 5490-5730 @ 160 MHz 23 mBm (DFS)

nl80211: 5735-5835 @ 80 MHz 30 mBm

nl80211: 57240-63720 @ 2160 MHz 40 mBm

nl80211: Added 802.11b mode based on 802.11g information

nl80211: Mode IEEE 802.11g: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484

nl80211: Mode IEEE 802.11a: 5180 5200 5220 5240 5260[RADAR] 5280[RADAR] 5300[RADAR] 5320[RADAR] 5500[RADAR] 5520[RADAR] 5540[RADAR] 5560[RADAR] 5580[RADAR] 5600[RADAR] 5620[RADAR] 5640[RADAR] 5660[RADAR] 5680[RADAR]

nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484

Channel 124 (primary) not allowed for AP mode, flags: 0x7c07979 RADAR

wlan0: IEEE 802.11 Configured channel (124) not found from the channel list of current mode (2) IEEE 802.11a

wlan0: IEEE 802.11 Hardware does not support configured channel

Could not select hw_mode and channel. (-3)

wlan0: interface state COUNTRY_UPDATE->DISABLED

wlan0: AP-DISABLED



1 comment:

  1. Hi Charles, thanks for performing this testing. I'd like do some further debugging with you on this. Can you drop me a note at : wifinigel "at" gmail.com ? Thanks :)

    ReplyDelete