aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/wpa_auth_ft.c
diff options
context:
space:
mode:
authorShan Palanisamy <Shan.Palanisamy@Atheros.com>2010-10-25 10:35:51 (GMT)
committerJouni Malinen <j@w1.fi>2011-03-06 12:31:42 (GMT)
commitd7956add9cf3069e6ed0c36bd61dba6601ce153e (patch)
tree88444d6173cf3cccdba1999f290b4bd95885ce1c /src/ap/wpa_auth_ft.c
parentc0647147c1a5264e23a20a415a5b1e935301f0c4 (diff)
downloadhostap-d7956add9cf3069e6ed0c36bd61dba6601ce153e.zip
hostap-d7956add9cf3069e6ed0c36bd61dba6601ce153e.tar.gz
hostap-d7956add9cf3069e6ed0c36bd61dba6601ce153e.tar.bz2
FT: Make FT-over-DS configurable (hostapd.conf ft_over_ds=0/1)
Diffstat (limited to 'src/ap/wpa_auth_ft.c')
-rw-r--r--src/ap/wpa_auth_ft.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ap/wpa_auth_ft.c b/src/ap/wpa_auth_ft.c
index 6631d23..65f5f4c 100644
--- a/src/ap/wpa_auth_ft.c
+++ b/src/ap/wpa_auth_ft.c
@@ -92,7 +92,9 @@ int wpa_write_mdie(struct wpa_auth_config *conf, u8 *buf, size_t len)
*pos++ = MOBILITY_DOMAIN_ID_LEN + 1;
os_memcpy(pos, conf->mobility_domain, MOBILITY_DOMAIN_ID_LEN);
pos += MOBILITY_DOMAIN_ID_LEN;
- capab = RSN_FT_CAPAB_FT_OVER_DS;
+ capab = 0;
+ if (conf->ft_over_ds)
+ capab |= RSN_FT_CAPAB_FT_OVER_DS;
*pos++ = capab;
return pos - buf;