From 7a228b5c3ff5137a35efacdd7f8f0d45575422ed Mon Sep 17 00:00:00 2001 From: Bob Copeland Date: Mon, 1 Sep 2014 00:23:23 -0400 Subject: [PATCH] nl80211: Add STA flag WPA_STA_AUTHENTICATED This is needed for managing STA entries for mesh use cases. Signed-off-by: Javier Lopez Signed-off-by: Javier Cardona Signed-off-by: Jason Mobarak Signed-off-by: Bob Copeland --- src/drivers/driver.h | 1 + src/drivers/driver_nl80211.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/drivers/driver.h b/src/drivers/driver.h index d4e013405..f534b0801 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -1247,6 +1247,7 @@ struct wpa_bss_params { #define WPA_STA_SHORT_PREAMBLE BIT(2) #define WPA_STA_MFP BIT(3) #define WPA_STA_TDLS_PEER BIT(4) +#define WPA_STA_AUTHENTICATED BIT(5) enum tdls_oper { TDLS_DISCOVERY_REQ, diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 56b30d0c0..b94fe245d 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -7872,6 +7872,8 @@ static u32 sta_flags_nl80211(int flags) f |= BIT(NL80211_STA_FLAG_MFP); if (flags & WPA_STA_TDLS_PEER) f |= BIT(NL80211_STA_FLAG_TDLS_PEER); + if (flags & WPA_STA_AUTHENTICATED) + f |= BIT(NL80211_STA_FLAG_AUTHENTICATED); return f; }