pratikv2x1
Posts: 2
Joined: Thu Apr 18, 2019 11:00 am

Enabling and performing fast hand-off in rpi 3b+ as a client

Thu Apr 18, 2019 12:14 pm

Hello Everyone,

I am trying to use rapberry pi 3b+ as a client to perform fast handover(80211R). I am using wpa_supplicant-2.6. I have also enabled 80211R while I was building it from the source code. It is said that rpi 3b+ supports fast handover but in my case it is not entering into network

below is the detail of my wpa_supplicant conf file :

Code: Select all

ctrl_interface=/var/run/wpa_supplicant
updaate_config=1
pmf=1
network={
                  ssid="iisc-FT"
                   psk="*******"
                   key_mgmt=FT-PSK
}

I am initialising my wpa_supplicant with this command:-
/home/pi/Downloads/wpa_supplicant-2.6/wpa_supplicant/wpa_supplicant -iwlan0 -dd -Dnl80211 -c/home/pi/Downloads/wpa_supplicant-2.6/wpa_supplicant/wpa_supplicant _template.conf.

My APs are enabled with 802.11R.

I am getting error as:

wlan0: Association Request to driver failed.
Below are the log level details.-
----------------------------------------------------------------------------------
root@raspberrypi:/home/pi# /home/pi/Downloads/wpa_supplicant-2.6/wpa_supplicant/wpa_supplicant -iwlan0 -Dnl80211 -dd -c/home/pi/Downloads/wpa_supplicant-2.6/wpa_supplicant/wpa_supplicant_template.conf
wpa_supplicant v2.6
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/home/pi/Downloads/wpa_supplicant-2.6/wpa_supplicant/wpa_supplicant_template.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/home/pi/Downloads/wpa_supplicant-2.6/wpa_supplicant/wpa_supplicant_template.conf' -> '/home/pi/Downloads/wpa_supplicant-2.6/wpa_supplicant/wpa_supplicant_template.conf'
Reading configuration file '/home/pi/Downloads/wpa_supplicant-2.6/wpa_supplicant/wpa_supplicant_template.conf'
ctrl_interface='/var/run/wpa_supplicant'
update_config=1
pmf=1
Line: 7 - start of a new network block
ssid - hexdump_ascii(len=7):
69 69 73 63 2d 46 54 iisc-FT
PSK (ASCII passphrase) - hexdump_ascii(len=10): [REMOVED]
key_mgmt: 0x40
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
id=0 ssid='iisc-FT'
nl80211: Using driver-based roaming
nl80211: TDLS supported
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:6
nl80211: Using driver-based off-channel TX
nl80211: Supported vendor command: vendor_id=0x1018 subcmd=1
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: Enable multi-channel concurrent (driver advertised support)
nl80211: use P2P_DEVICE support
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0x5d0600
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5d0600 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5d0600 match=0a07
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5d0600 match=0a11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5d0600 match=1101
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5d0600 match=1102
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5d0600 match=0505
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5d0600 match=0500
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
netlink: Operstate: ifindex=3 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
Add interface wlan0 to a new radio phy0
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
wlan0: Own MAC address: b8:27:eb:f0:36:4e
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
wlan0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
ENGINE: Loading dynamic engine
ENGINE: Loading dynamic engine
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Skip set_supp_port(unauthorized) while not associated
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
random: Got 20/20 bytes from /dev/random
RTM_NEWLINK: ifi_index=3 ifname=wlan0 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK: ifi_index=3 ifname=wlan0 operstate=2 linkmode=1 ifi_family=0 ifi_flags=0x1003 ([UP])
wlan0: Starting delayed sched scan
wlan0: Use normal scan instead of sched_scan for initial scans (normal_scans=0)
wlan0: Setting scan request: 0.000000 sec
wlan0: State: DISCONNECTED -> SCANNING
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x5e0f48
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x5e0f48 after 0.000025 second wait
wlan0: nl80211: scan request
nl80211: Scan SSID - hexdump_ascii(len=0): [NULL]
Scan requested (ret=0) - scan timeout 10 seconds
nl80211: Event message available
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlan0
wlan0: nl80211: Scan trigger
wlan0: Event SCAN_STARTED (47) received
wlan0: Own scan request started a scan in 0.000100 seconds
EAPOL: disable timer tick
RTM_NEWLINK: ifi_index=3 ifname=wlan0 wext ifi_family=0 ifi_flags=0x1003 ([UP])
nl80211: Event message available
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan0
wlan0: nl80211: New scan results available
nl80211: Scan probed for SSID ''
nl80211: Scan included frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 5180 5200 5220 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5720 5745 5765 5785 5805 5825
wlan0: Event SCAN_RESULTS (3) received
wlan0: Scan completed in 2.778794 seconds
nl80211: Received scan results (12 BSSes)
wlan0: BSS: Start scan result update 1
wlan0: BSS: Add new id 0 BSSID 8c:3b:ad:ed:49:84 SSID 'NETGEAR01-5G' freq 5745
wlan0: BSS: Add new id 1 BSSID 54:b8:0a:9d:5d:23 SSID 'MWLAB' freq 2412
wlan0: BSS: Add new id 2 BSSID 18:8b:45:07:29:20 SSID 'iiscwlan' freq 2462
wlan0: BSS: Add new id 3 BSSID 38:20:56:7e:c6:8f SSID 'iiscwlan' freq 5260
wlan0: BSS: Add new id 4 BSSID 38:20:56:7e:c6:8e SSID 'eduroam' freq 5260
wlan0: BSS: Add new id 5 BSSID 18:8b:45:07:29:21 SSID 'eduroam' freq 2462
wlan0: BSS: Add new id 6 BSSID 00:14:6a:b2:1f:80 SSID 'iiscwlan' freq 2437
wlan0: BSS: Add new id 7 BSSID 70:7d:b9:8d:9b:41 SSID 'eduroam' freq 2437
wlan0: BSS: Add new id 8 BSSID 70:7d:b9:8d:9b:40 SSID 'iiscwlan' freq 2437
wlan0: BSS: Add new id 9 BSSID 18:d6:c7:51:be:24 SSID 'iisc-FT' freq 2462
wlan0: BSS: Add new id 10 BSSID 92:cd:b6:33:41:d1 SSID 'DIRECT-d1-HP M227f LaserJet' freq 2437
wlan0: BSS: Add new id 11 BSSID a8:6b:ad:8a:58:d7 SSID 'HP-Print-d7-LaserJet Pro M202dw' freq 2412
BSS: last_scan_res_used=12/32
wlan0: New scan results available (own=1 ext=0)
wlan0: Radio work 'scan'@0x5e0f48 done in 2.803851 seconds
wlan0: radio_work_free('scan'@0x5e0f48: num_active_works --> 0
wlan0: Selecting BSS from priority group 0
wlan0: 0: 8c:3b:ad:ed:49:84 ssid='NETGEAR01-5G' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=-47 freq=5745 wps
wlan0: skip - SSID mismatch
wlan0: 1: 54:b8:0a:9d:5d:23 ssid='MWLAB' wpa_ie_len=22 rsn_ie_len=20 caps=0x411 level=-57 freq=2412 wps
wlan0: skip - SSID mismatch
wlan0: 2: 18:8b:45:07:29:20 ssid='iiscwlan' wpa_ie_len=24 rsn_ie_len=20 caps=0x431 level=-59 freq=2462
wlan0: skip - SSID mismatch
wlan0: 3: 38:20:56:7e:c6:8f ssid='iiscwlan' wpa_ie_len=24 rsn_ie_len=20 caps=0x511 level=-67 freq=5260
wlan0: skip - SSID mismatch
wlan0: 4: 38:20:56:7e:c6:8e ssid='eduroam' wpa_ie_len=28 rsn_ie_len=20 caps=0x511 level=-68 freq=5260
wlan0: skip - SSID mismatch
wlan0: 5: 18:8b:45:07:29:21 ssid='eduroam' wpa_ie_len=28 rsn_ie_len=20 caps=0x431 level=-61 freq=2462
wlan0: skip - SSID mismatch
wlan0: 6: 00:14:6a:b2:1f:80 ssid='iiscwlan' wpa_ie_len=24 rsn_ie_len=20 caps=0x431 level=-67 freq=2437
wlan0: skip - SSID mismatch
wlan0: 7: 70:7d:b9:8d:9b:41 ssid='eduroam' wpa_ie_len=28 rsn_ie_len=20 caps=0x1431 level=-68 freq=2437
wlan0: skip - SSID mismatch
wlan0: 8: 70:7d:b9:8d:9b:40 ssid='iiscwlan' wpa_ie_len=24 rsn_ie_len=20 caps=0x1431 level=-71 freq=2437
wlan0: skip - SSID mismatch
wlan0: 9: 18:d6:c7:51:be:24 ssid='iisc-FT' wpa_ie_len=0 rsn_ie_len=24 caps=0x431 level=-75 freq=2462
wlan0: selected based on RSN IE
wlan0: selected BSS 18:d6:c7:51:be:24 ssid='iisc-FT'
wlan0: Considering connect request: reassociate: 0 selected: 18:d6:c7:51:be:24 bssid: 00:00:00:00:00:00 pending: 00:00:00:00:00:00 wpa_state: SCANNING ssid=0x5d1260 current_ssid=(nil)
wlan0: Request association with 18:d6:c7:51:be:24
wlan0: Add radio work 'connect'@0x5e0f48
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'connect'@0x5e0f48 after 0.000068 second wait
wlan0: Trying to associate with SSID 'iisc-FT'
wlan0: Cancelling scan request
wlan0: WPA: clearing own WPA/RSN IE
wlan0: Automatic auth_alg selection: 0x1
RSN: PMKSA cache search - network_ctx=0x5d1260 try_opportunistic=0
RSN: Search for BSSID 18:d6:c7:51:be:24
RSN: No PMKSA cache entry found
wlan0: RSN: using IEEE 802.11i/D9.0
wlan0: WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 66 proto 2
wlan0: WPA: clearing AP WPA IE
WPA: set AP RSN IE - hexdump(len=26): 30 18 01 00 00 0f ac 04 01 00 00 0f ac 04 02 00 00 0f ac 02 00 0f ac 04 0c 00
wlan0: WPA: using GTK CCMP
wlan0: WPA: using PTK CCMP
wlan0: WPA: using KEY_MGMT FT/PSK
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 04 00 00
wlan0: State: SCANNING -> ASSOCIATING
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Unsubscribe mgmt frames handle 0x88d58e89 (mode change)
nl80211: Subscribe to mgmt frames with non-AP handle 0x5d0600
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5d0600 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5d0600 match=0a07
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5d0600 match=0a11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5d0600 match=1101
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5d0600 match=1102
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5d0600 match=0505
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5d0600 match=0500
nl80211: Connect (ifindex=3)
* bssid_hint=18:d6:c7:51:be:24
* freq_hint=2462
* SSID - hexdump_ascii(len=7):
69 69 73 63 2d 46 54 iisc-FT
* IEs - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 04 00 00
* WPA Versions 0x2
* pairwise=0xfac04
* group=0xfac04
* akm=0xfac04
* Auth Type 0
nl80211: MLME connect failed: ret=-22 (Invalid argument)
wlan0: Association request to the driver failed
wlan0: Radio work 'connect'@0x5e0f48 done in 0.004504 seconds
wlan0: radio_work_free('connect'@0x5e0f48: num_active_works --> 0
Added BSSID 18:d6:c7:51:be:24 into blacklist
wlan0: Blacklist count 1 --> request scan in 100 ms
wlan0: Setting scan request: 0.100000 sec
wlan0: State: ASSOCIATING -> DISCONNECTED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
wlan0: State: DISCONNECTED -> SCANNING
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x5e0f48


Looking forward for help. Please let me know if you need any further details or you have any queries. It is my first time posting into a forum so please bear the language and tone.

Thanks and Regards,
Pratik Sharma

ScottWSydney
Posts: 1
Joined: Sat Jul 13, 2019 3:15 am

Re: Enabling and performing fast hand-off in rpi 3b+ as a client

Sat Jul 13, 2019 3:17 am

Hello - I need to get the same thing working - did you have any luck with this one?

User avatar
robrimes
Posts: 4
Joined: Thu Dec 05, 2019 9:58 am
Location: USA
Contact: Website Skype

Re: Enabling and performing fast hand-off in rpi 3b+ as a client

Thu Dec 05, 2019 10:46 am

I'm working same issue, adding (802.11r and 802.11k) to pi 3/4.

My research showing the wifi hardware (cypress wireless CYW43455) may not support 802r / 802k, however I'm finding the chipset (CYW43455) might support r/k. My work around would be getting a USB adapter working with r/k, however, I may need driver code for the WLAN driver (bcrmfmac) to work that further.

Wondering if anyone has more information or direction.

https://news.ycombinator.com/item?id=16582882
https://raspberry.piaustralia.com.au/bl ... -3-model-b
https://openwrt.org/docs/techref/driver.wlan/brcmfmac

Rob
Attachments
802r.jpg
CYW43455 specs
802r.jpg (142.61 KiB) Viewed 658 times
Rob

User avatar
robrimes
Posts: 4
Joined: Thu Dec 05, 2019 9:58 am
Location: USA
Contact: Website Skype

Re: Enabling and performing fast hand-off in rpi 3b+ as a client

Wed Dec 11, 2019 2:34 pm

I've continued research on pi 3 fast hand off or fast AP hopping. The features of 802 R/S/V are not available in the chip set. One could possibly create code with a 2nd adapter in monitor mode, create a work around "like" having 802 R/S/V, however, I added high gain antenna and it worked worlds better than the internal wifi adapter. I'm hopping to 2nd AP in few seconds, and this is working for my needs.

Just wanted to post, high gain antenna solved my fast hand off issues.

Rob
Rob

User avatar
davidcoton
Posts: 4909
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK
Contact: Website

Re: Enabling and performing fast hand-off in rpi 3b+ as a client

Wed Dec 11, 2019 4:41 pm

robrimes wrote:
Wed Dec 11, 2019 2:34 pm
Just wanted to post, high gain antenna solved my fast hand off issues.
You are aware, of course, that adding a high gain antenna to a Pi3B+ will invalidate its FCC, CE, or equivalent certification in (almost?) every country? In the worst case, you will get an unpleasant visit from the men in black.
Signature retired

User avatar
robrimes
Posts: 4
Joined: Thu Dec 05, 2019 9:58 am
Location: USA
Contact: Website Skype

Re: Enabling and performing fast hand-off in rpi 3b+ as a client

Wed Dec 11, 2019 5:39 pm

Thanks, I'll use the term "high gain" in your relativity.... COTS....

Thanks for the thoughts...
Rob

User avatar
davidcoton
Posts: 4909
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK
Contact: Website

Re: Enabling and performing fast hand-off in rpi 3b+ as a client

Wed Dec 11, 2019 5:44 pm

Let me clarify my previous post.
Adding any external antenna to the Pi3B+ built-in WiFi and Bluetooth will invalidate its FCC, CE, or equivalent certification.
Signature retired

User avatar
robrimes
Posts: 4
Joined: Thu Dec 05, 2019 9:58 am
Location: USA
Contact: Website Skype

Re: Enabling and performing fast hand-off in rpi 3b+ as a client

Wed Dec 11, 2019 5:45 pm

your post does not affect me, nor concern me, nor help me....

Thanks!
Rob

wildfire
Posts: 606
Joined: Sat Sep 03, 2016 10:39 am
Location: Dundee, Scotland

Re: Enabling and performing fast hand-off in rpi 3b+ as a client

Wed Dec 11, 2019 5:55 pm

robrimes wrote:
Wed Dec 11, 2019 5:45 pm
your post does not affect me, nor concern me, nor help me....
But your ill informed advice may affect others who follow it. Never mind you're alright jack.
E8 85 A2 64 C9 64 81 94 64 81 95 64 89 84 89 96 A3
Still NF Shirls

Return to “General discussion”