Qcom platform testing wifi TIS needs to turn off wifi scanning, roaming and hibernation

When testing the wifi function of QCA series IC, you need to disable wifi scanning, roaming and hibernation:

1. Prohibit wifi scanning


Description: Because you need to test wifi TlS when wifi is turned on, the requirement is to turn off wifi scan.
Tools needed: iwpriv tool
Free download address: https://download.csdn.net/download/weixin_42271802/16232478
Disable method :

  1. Enter the device shell (adb shell enter)
  2. #iwpriv wlan0 setUnitTestCmd 9 2 1 0
  3. #iwpriv wlan0 scan_disable 1

Of course, the opening method is also posted:
Enabling method :

  1. Enter the device shell (adb shell enter)
  2. #iwpriv wlan0 setUnitTestCmd 9 1 1
  3. #iwpriv wlan0 scan_disable 0

doubt:

I only performed steps 1 and 3 before. Although the scan is effective in the wifisetting interface (after refreshing), the tester said that it still does not work. As a result, step 2 needs to be added.
Similarly, I use wpa_cli to abort scan:

  1. adb root
  2. adb remount
  3. adb shell
  4. wpa_cli

  5. Although stop scan shows ok in the shell:
> stop scan
OK

But it seems that the wifi is still scanned. I haven't found the reason yet. I hope everyone knows the reason and share it.

2. Roaming is disabled

If you use the above method of disabling scanning, roaming will also be disabled, and there is no need to perform a separate operation again.
If you do not want to go to step 1, just want to turn off roaming (without disabling scanning): For
roaming, you can modify WCNSS_qcom_cfg.ini:

# Legacy (non-ESE, non-802.11r) Fast Roaming Support
# To enable, set FastRoamEnabled=1
# To disable, set FastRoamEnabled=0
FastRoamEnabled=0

3. Wi-Fi prohibits sleep

Description: Wi-Fi needs OTA, so do not sleep, so that OTA can proceed smoothly:
or modify the variables in WCNSS_qcom_cfg.ini:

#disable 0
#enbale 1
gEnableImps = 0
gEnableBmps = 0

If these two variables do not exist, just find a blank space and add these two variables. If there are, modify the assignment directly.

Guess you like

Origin blog.csdn.net/weixin_42271802/article/details/115322401