nl80211: Add STA flag WPA_STA_AUTHENTICATED
This is needed for managing STA entries for mesh use cases. Signed-off-by: Javier Lopez <jlopex@gmail.com> Signed-off-by: Javier Cardona <javier@cozybit.com> Signed-off-by: Jason Mobarak <x@jason.mobarak.name> Signed-off-by: Bob Copeland <me@bobcopeland.com>
This commit is contained in:
parent
7c7e7877fc
commit
7a228b5c3f
2 changed files with 3 additions and 0 deletions
|
@ -1247,6 +1247,7 @@ struct wpa_bss_params {
|
||||||
#define WPA_STA_SHORT_PREAMBLE BIT(2)
|
#define WPA_STA_SHORT_PREAMBLE BIT(2)
|
||||||
#define WPA_STA_MFP BIT(3)
|
#define WPA_STA_MFP BIT(3)
|
||||||
#define WPA_STA_TDLS_PEER BIT(4)
|
#define WPA_STA_TDLS_PEER BIT(4)
|
||||||
|
#define WPA_STA_AUTHENTICATED BIT(5)
|
||||||
|
|
||||||
enum tdls_oper {
|
enum tdls_oper {
|
||||||
TDLS_DISCOVERY_REQ,
|
TDLS_DISCOVERY_REQ,
|
||||||
|
|
|
@ -7872,6 +7872,8 @@ static u32 sta_flags_nl80211(int flags)
|
||||||
f |= BIT(NL80211_STA_FLAG_MFP);
|
f |= BIT(NL80211_STA_FLAG_MFP);
|
||||||
if (flags & WPA_STA_TDLS_PEER)
|
if (flags & WPA_STA_TDLS_PEER)
|
||||||
f |= BIT(NL80211_STA_FLAG_TDLS_PEER);
|
f |= BIT(NL80211_STA_FLAG_TDLS_PEER);
|
||||||
|
if (flags & WPA_STA_AUTHENTICATED)
|
||||||
|
f |= BIT(NL80211_STA_FLAG_AUTHENTICATED);
|
||||||
|
|
||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue