aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ap_drv_ops.c
diff options
context:
space:
mode:
authorMarek Kwaczynski <marek.kwaczynski@tieto.com>2014-02-10 12:43:05 (GMT)
committerJouni Malinen <j@w1.fi>2014-02-14 17:30:05 (GMT)
commit8a45811638d3d5c913175c4b8fc17a9bff0178e1 (patch)
tree9222a7b1c484e72445b079ccc84ed1207f9ee4b3 /src/ap/ap_drv_ops.c
parentd9dd86be1dfb49255d3c8243d65f1a6ebc00e32d (diff)
downloadhostap-8a45811638d3d5c913175c4b8fc17a9bff0178e1.zip
hostap-8a45811638d3d5c913175c4b8fc17a9bff0178e1.tar.gz
hostap-8a45811638d3d5c913175c4b8fc17a9bff0178e1.tar.bz2
hostapd: Add Operating Mode Notification support
Handle Operating Mode Notification received in (Re)Association Request frames. Signed-hostap: Marek Kwaczynski <marek.kwaczynski@tieto.com>
Diffstat (limited to 'src/ap/ap_drv_ops.c')
-rw-r--r--src/ap/ap_drv_ops.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
index 893e6d9..e998fc6 100644
--- a/src/ap/ap_drv_ops.c
+++ b/src/ap/ap_drv_ops.c
@@ -346,7 +346,7 @@ int hostapd_sta_add(struct hostapd_data *hapd,
u16 listen_interval,
const struct ieee80211_ht_capabilities *ht_capab,
const struct ieee80211_vht_capabilities *vht_capab,
- u32 flags, u8 qosinfo)
+ u32 flags, u8 qosinfo, u8 vht_opmode)
{
struct hostapd_sta_add_params params;
@@ -364,6 +364,8 @@ int hostapd_sta_add(struct hostapd_data *hapd,
params.listen_interval = listen_interval;
params.ht_capabilities = ht_capab;
params.vht_capabilities = vht_capab;
+ params.vht_opmode_enabled = !!(flags & WLAN_STA_VHT_OPMODE_ENABLED);
+ params.vht_opmode = vht_opmode;
params.flags = hostapd_sta_flags_to_drv(flags);
params.qosinfo = qosinfo;
return hapd->driver->sta_add(hapd->drv_priv, &params);