This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/WL1801MOD: Passive Scan functionality verification

Part Number: WL1801MOD

Tool/software: Linux

How can we test the passive scan functionality? My customer is trying to check the passive scan and not being able to see it work. 

I asked them to modify the wpa_supplicant.conf to hard code the passive scan setting but they dont seem to be able to get it working. 

Any suggestions? How is passive scan tested?

I try it again by adding passive_scan=0 in wpa_supplicant.conf file, still not work.

ctrl_interface=/var/run/wpa_supplicant

ap_scan=1

passive_scan=0

fast_reauth=1

filter_ssids=1

network={

    key_mgmt=WPA-PSK

    ssid="fb53e249f7028f8859135e8ee70ef1cc"

    psk="I0d91c32b9718c0126b6123b83b4ac56c"

}

 

See below result, wpa_supplicant is failed to start:

 

# wpa_supplicant -W -B -Dnl80211 -iwlan0 -c /tmp/wpa_supplicant.conf

Successfully initialized wpa_supplicant

Line 3: unknown global field 'passive_scan=0'.

Line 3: Invalid configuration line 'passive_scan=0'.

Failed to read or parse configuration '/tmp/wpa_supplicant.conf'.

  • Hi Prasanna,
    Try "iw dev wlan0 scan passive" for passive scan

    Saurabh
  • saurabh,

    they specifically wanted to get it working with the wpa_supplicant. I will ask them to try with the iw interface as well, 

  • Hi Prasanna,
    try running 'wpa_cli -i wlan0 scan passive=1'

    Saurabh
  • Saurabh,

    They tried the following and still saw probe requests over the air. I have requested for sniffer traces to confirm that but have not received them yet. See message below. 

    With TI WiFi driver, I am able to validate that the passive scan is working by using iw command( iw wlan0 scan passive ), I don’t see probe requests and probe responses in the WiFi sniffer.  So I think the driver supports the passive scan.

    However, when I use wpa_supplicant 2.2, and use wpa_cli command (wpa_cli scan passive=1), I still see the probe requests and responses in the sniffer.  Note that our application uses wpa_supplicant.

    My question is: has TI validate the passive can using wpa_supplicant?  Any help/hint from TI would be greatly appreciated.

     

    Regards,

    Prasanna.

  • Hi Prasanna,
    supplicant 2.2 is old , can't comment on that . Although i checked the supplicant change log and it states that this feature was implemented in 2.1 : w1.fi/.../ChangeLog
    I just ran the command on my board running supplicant based on 2.6 and passive scan command works ok

    Saurabh