path: root/src/ap/ap_drv_ops.c
diff options
authorAyala Beker <ayala.beker@intel.com>2016-04-07 10:31:01 (GMT)
committerJouni Malinen <j@w1.fi>2016-04-08 10:02:49 (GMT)
commitae33239c555313e547b9a2a376c927ec50e2b9de (patch)
tree6c4f69d3a9b0bfa4d39b7e6f445a8eb0c47c3a2e /src/ap/ap_drv_ops.c
parent7405bb06ca29f8d06d105d49d2475b11be1f00eb (diff)
AP: Pass station P2P PS capabilities info during station add/set
If a legacy client with no P2P PS support is trying to connect to a P2P GO, the driver should know that, and change its PS behavior accordingly. Add a parameter to hostapd_sta_add_params() indicating if P2P PS is supported by the station and pass this parameter to kernel with nl80211 driver when the station is added/set. Signed-off-by: Ayala Beker <ayala.beker@intel.com>
Diffstat (limited to 'src/ap/ap_drv_ops.c')
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
index b89f60e..a3f4dd9 100644
--- a/src/ap/ap_drv_ops.c
+++ b/src/ap/ap_drv_ops.c
@@ -362,7 +362,8 @@ 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, u8 vht_opmode, int set)
+ u32 flags, u8 qosinfo, u8 vht_opmode, int supp_p2p_ps,
+ int set)
struct hostapd_sta_add_params params;
@@ -384,6 +385,7 @@ int hostapd_sta_add(struct hostapd_data *hapd,
params.vht_opmode = vht_opmode;
params.flags = hostapd_sta_flags_to_drv(flags);
params.qosinfo = qosinfo;
+ params.support_p2p_ps = supp_p2p_ps;
params.set = set;
return hapd->driver->sta_add(hapd->drv_priv, &params);