Author: nbd
Date: 2015-07-15 10:16:22 +0200 (Wed, 15 Jul 2015)
New Revision: 46377

Modified:
   trunk/package/network/services/hostapd/files/netifd.sh
   trunk/package/network/services/hostapd/files/wpa_supplicant-full.config
Log:
wpa-supplicant: add 802.11r client support

Add 802.11r client support to wpa_supplicant. It's only enabled in
wpa_supplicant-full. hostapd gained 802.11r support in commit r45051.

Tested on a TP-Link TL-WR710N sta psk client with two 802.11r enabled
openwrt accesspoints (TP-Link TL-WDR3600).

Signed-off-by: Stefan Hellermann <[email protected]>

Modified: trunk/package/network/services/hostapd/files/netifd.sh
===================================================================
--- trunk/package/network/services/hostapd/files/netifd.sh      2015-07-15 
07:38:54 UTC (rev 46376)
+++ trunk/package/network/services/hostapd/files/netifd.sh      2015-07-15 
08:16:22 UTC (rev 46377)
@@ -538,8 +538,10 @@
        json_get_vars \
                ssid bssid key \
                basic_rate mcast_rate \
-               ieee80211w
+               ieee80211w ieee80211r
 
+       set_default ieee80211r 0
+
        local key_mgmt='NONE'
        local enc_str=
        local network_data=
@@ -549,6 +551,8 @@
        local scan_ssid="scan_ssid=1"
        local freq
 
+       [ "$ieee80211r" -gt 0 ] && wpa_key_mgmt="FT-PSK $wpa_key_mgmt"
+
        [[ "$_w_mode" = "adhoc" ]] && {
                append network_data "mode=1" "$N$T"
                [ -n "$channel" ] && {
@@ -594,6 +598,7 @@
                ;;
                eap)
                        key_mgmt='WPA-EAP'
+                       [ "$ieee80211r" -gt 0 ] && key_mgmt="FT-EAP $key_mgmt"
 
                        json_get_vars eap_type identity ca_cert
                        [ -n "$ca_cert" ] && append network_data 
"ca_cert=\"$ca_cert\"" "$N$T"

Modified: 
trunk/package/network/services/hostapd/files/wpa_supplicant-full.config
===================================================================
--- trunk/package/network/services/hostapd/files/wpa_supplicant-full.config     
2015-07-15 07:38:54 UTC (rev 46376)
+++ trunk/package/network/services/hostapd/files/wpa_supplicant-full.config     
2015-07-15 08:16:22 UTC (rev 46377)
@@ -367,7 +367,7 @@
 #CONFIG_DYNAMIC_EAP_METHODS=y
 
 # IEEE Std 802.11r-2008 (Fast BSS Transition)
-#CONFIG_IEEE80211R=y
+CONFIG_IEEE80211R=y
 
 # Add support for writing debug log to a file (/tmp/wpa_supplicant-log-#.txt)
 #CONFIG_DEBUG_FILE=y
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to