@@ -36,6 +36,11 @@ u32 hostapd_sta_flags_to_drv(u32 flags)
3636 if (flags & WLAN_STA_MFP ) {
3737 res |= WPA_STA_MFP ;
3838 }
39+ if (flags & WLAN_STA_AUTH )
40+ res |= WPA_STA_AUTHENTICATED ;
41+ if (flags & WLAN_STA_ASSOC )
42+ res |= WPA_STA_ASSOCIATED ;
43+
3944 return res ;
4045}
4146
@@ -351,7 +356,13 @@ int hostapd_sta_assoc(struct hostapd_data *hapd, const u8 *addr, int reassoc, u1
351356 return hapd -> driver -> sta_assoc (hapd -> drv_priv , hapd -> own_addr , addr , reassoc , status , ie , len );
352357}
353358
354- int hostapd_sta_add (struct hostapd_data * hapd , const u8 * addr , u16 aid , u16 capability , const u8 * supp_rates , size_t supp_rates_len , u16 listen_interval , const struct ieee80211_ht_capabilities * ht_capab , const struct ieee80211_vht_capabilities * vht_capab , u32 flags , u8 qosinfo , u8 vht_opmode )
359+ int hostapd_sta_add (struct hostapd_data * hapd , const u8 * addr , u16 aid ,
360+ u16 capability , const u8 * supp_rates ,
361+ size_t supp_rates_len , u16 listen_interval ,
362+ const struct ieee80211_ht_capabilities * ht_capab ,
363+ const struct ieee80211_vht_capabilities * vht_capab ,
364+ u32 flags , u8 qosinfo , u8 vht_opmode , int supp_p2p_ps ,
365+ int set )
355366{
356367 struct hostapd_sta_add_params params ;
357368
@@ -375,6 +386,8 @@ int hostapd_sta_add(struct hostapd_data *hapd, const u8 *addr, u16 aid, u16 capa
375386 params .vht_opmode = vht_opmode ;
376387 params .flags = hostapd_sta_flags_to_drv (flags );
377388 params .qosinfo = qosinfo ;
389+ params .support_p2p_ps = supp_p2p_ps ;
390+ params .set = set ;
378391 return hapd -> driver -> sta_add (hapd -> drv_priv , & params );
379392}
380393
0 commit comments