Wireless Android Auto not working though it works through USB
Expected Behavior
Android Auto Wireless should work
Current Behavior
Android Auto Wireless connection doesn't work
AA thorough the USB cable works without any issues, only the wireless connection doesn't work. When looking into the logcat I see the probable issue here:
05-01 17:20:22.388 27176 27220 I GH.WIRELESS.CHANNEL: WifiScanner reported available channels: [5180, 5200, 5220, 5240, 5260, 5280, 5300, 5320, 5500, 5520, 5540, 5560, 5580, 5600, 5620, 5640, 5660, 5680, 5700]
05-01 17:20:22.389 27176 27220 I GH.WIRELESS.SETUP: HU requested version: 1.0, phone using version: 4.2
05-01 17:20:22.401 27176 27220 I GH.WIRELESS.SETUP: State changed to NO_COMPATIBLE_WIFI_CHANNEL_FOUND on RFCOMM:
05-01 17:20:22.402 27176 27220 E GH.WIRELESS.SETUP: WiFi channels not supported: [5745]
So it seems from these logs that the head unit wants to connect on channel 149 but my wifi chip doesn't support that, so no wireless connection can be established.
Then I decided to run the iw list and iw reg get commands to see what my chip supports:
iw list:
...
Frequencies:
* 5180 MHz [36] (0.0 dBm)
* 5200 MHz [40] (0.0 dBm)
* 5220 MHz [44] (0.0 dBm)
* 5240 MHz [48] (0.0 dBm)
* 5260 MHz [52] (0.0 dBm) (radar detection)
* 5280 MHz [56] (0.0 dBm) (radar detection)
* 5300 MHz [60] (0.0 dBm) (radar detection)
* 5320 MHz [64] (0.0 dBm) (radar detection)
* 5500 MHz [100] (0.0 dBm) (radar detection)
* 5520 MHz [104] (0.0 dBm) (radar detection)
* 5540 MHz [108] (0.0 dBm) (radar detection)
* 5560 MHz [112] (0.0 dBm) (radar detection)
* 5580 MHz [116] (0.0 dBm) (radar detection)
* 5600 MHz [120] (0.0 dBm) (radar detection)
* 5620 MHz [124] (0.0 dBm) (radar detection)
* 5640 MHz [128] (0.0 dBm) (radar detection)
* 5660 MHz [132] (0.0 dBm) (radar detection)
* 5680 MHz [136] (0.0 dBm) (radar detection)
* 5700 MHz [140] (0.0 dBm) (radar detection)
* 5720 MHz [144] (disabled)
* 5745 MHz [149] (disabled)
* 5765 MHz [153] (disabled)
* 5785 MHz [157] (disabled)
* 5805 MHz [161] (disabled)
* 5825 MHz [165] (disabled)
iw reg get:
global
country 00: DFS-UNSET
(2402 - 2472 @ 40), (6, 20), (N/A)
(2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
(5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
(5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
(5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
(57240 - 63720 @ 2160), (N/A, 0), (N/A)
I also have a oneplus 7t pro phone running lineage 18.1 where wireless AA works ok.
The output of iw list on this phone shows:
...
Frequencies:
* 5180 MHz [36] (23.0 dBm)
* 5200 MHz [40] (23.0 dBm)
* 5220 MHz [44] (23.0 dBm)
* 5240 MHz [48] (23.0 dBm)
* 5260 MHz [52] (23.0 dBm) (radar detection)
DFS state: usable (for 61730 sec)
DFS CAC time: 60000 ms
* 5280 MHz [56] (23.0 dBm) (radar detection)
DFS state: usable (for 61730 sec)
DFS CAC time: 60000 ms
* 5300 MHz [60] (23.0 dBm) (radar detection)
DFS state: usable (for 61730 sec)
DFS CAC time: 60000 ms
* 5320 MHz [64] (23.0 dBm) (radar detection)
DFS state: usable (for 61730 sec)
DFS CAC time: 60000 ms
* 5500 MHz [100] (30.0 dBm) (radar detection)
DFS state: usable (for 61730 sec)
DFS CAC time: 60000 ms
* 5520 MHz [104] (30.0 dBm) (radar detection)
DFS state: usable (for 61730 sec)
DFS CAC time: 60000 ms
* 5540 MHz [108] (30.0 dBm) (radar detection)
DFS state: usable (for 61730 sec)
DFS CAC time: 60000 ms
* 5560 MHz [112] (30.0 dBm) (radar detection)
DFS state: usable (for 61730 sec)
DFS CAC time: 60000 ms
* 5580 MHz [116] (30.0 dBm) (radar detection)
DFS state: usable (for 61730 sec)
DFS CAC time: 60000 ms
* 5600 MHz [120] (30.0 dBm) (radar detection)
DFS state: usable (for 61730 sec)
DFS CAC time: 60000 ms
* 5620 MHz [124] (30.0 dBm) (radar detection)
DFS state: usable (for 61730 sec)
DFS CAC time: 60000 ms
* 5640 MHz [128] (30.0 dBm) (radar detection)
DFS state: usable (for 61730 sec)
DFS CAC time: 60000 ms
* 5660 MHz [132] (30.0 dBm) (radar detection)
DFS state: usable (for 61730 sec)
DFS CAC time: 60000 ms
* 5680 MHz [136] (30.0 dBm) (radar detection)
DFS state: usable (for 61730 sec)
DFS CAC time: 60000 ms
* 5700 MHz [140] (30.0 dBm) (radar detection)
DFS state: usable (for 61730 sec)
DFS CAC time: 60000 ms
* 5720 MHz [144] (30.0 dBm) (radar detection)
DFS state: usable (for 61730 sec)
DFS CAC time: 60000 ms
* 5745 MHz [149] (14.0 dBm)
* 5765 MHz [153] (14.0 dBm)
* 5785 MHz [157] (14.0 dBm)
* 5805 MHz [161] (14.0 dBm)
* 5825 MHz [165] (14.0 dBm)
* 5845 MHz [169] (14.0 dBm)
* 5865 MHz [173] (14.0 dBm)
The output of iw reg get on this phone shows:
global
country 00: DFS-UNSET
(2402 - 2472 @ 40), (N/A, 20), (N/A)
(2457 - 2482 @ 40), (N/A, 20), (N/A), PASSIVE-SCAN
(2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM, PASSIVE-SCAN
(5170 - 5250 @ 80), (N/A, 20), (N/A), PASSIVE-SCAN
(5250 - 5330 @ 80), (N/A, 20), (N/A), PASSIVE-SCAN
(5490 - 5710 @ 80), (N/A, 20), (N/A), PASSIVE-SCAN
(5735 - 5835 @ 80), (N/A, 20), (N/A), PASSIVE-SCAN
(57240 - 63720 @ 2160), (N/A, 0), (N/A)
phy#0 (self-managed)
country RO: DFS-ETSI
(2402 - 2482 @ 40), (N/A, 23), (N/A), AUTO-BW
(5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
(5490 - 5730 @ 160), (N/A, 30), (0 ms), DFS, AUTO-BW
(5735 - 5875 @ 80), (N/A, 14), (N/A), AUTO-BW
As far as I can tell it seems that my Redmi phone doesn't have the correct regulatory domain set, since I'm in Romania and channel 149 should be allowed.
Steps to Reproduce
- Start Head Unit
- Phone detects that the car supports wireless AA
- Popup on phone asks to continue the configuration on the head unit screen
- Car doesn't show the Android Auto button on the screen (which shows that a connection was not established)
Device information
/device merlinx /version lineage-20 /date 2023-04-28 /kernel Linux localhost 4.14.313-gc09aa93ec583 #1 Fri Apr 28 07:08:49 UTC 2023 /baseband MOLY.LR12A.R3.MP.V98.P114 /mods Google Apps, F-Droid
I have read the directions