lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 18 Mar 2022 14:58:02 -0500 From: Edmond Gagnon <egagnon@...areup.com> To: Kalle Valo <kvalo@...eaurora.org> Cc: Edmond Gagnon <egagnon@...areup.com>, Benjamin Li <benl@...areup.com>, Kalle Valo <kvalo@...nel.org>, "David S. Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>, wcn36xx@...ts.infradead.org, linux-wireless@...r.kernel.org, netdev@...r.kernel.org, linux-kernel@...r.kernel.org Subject: [PATCH v2 1/2] wcn36xx: Expose get_sta_index in wcn36xx.h Move this helper into wcn36xx.h for use in smd.c when constructing HAL_GET_STATS messages. Signed-off-by: Edmond Gagnon <egagnon@...areup.com> Reviewed-by: Benjamin Li <benl@...areup.com> --- drivers/net/wireless/ath/wcn36xx/main.c | 8 -------- drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index b545d4b2b8c4..70531f62777e 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -184,14 +184,6 @@ static const struct wiphy_wowlan_support wowlan_support = { #endif -static inline u8 get_sta_index(struct ieee80211_vif *vif, - struct wcn36xx_sta *sta_priv) -{ - return NL80211_IFTYPE_STATION == vif->type ? - sta_priv->bss_sta_index : - sta_priv->sta_index; -} - static const char * const wcn36xx_caps_names[] = { "MCC", /* 0 */ "P2P", /* 1 */ diff --git a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h index 9aa08b636d08..80a4e7aea419 100644 --- a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h +++ b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h @@ -335,4 +335,12 @@ struct wcn36xx_sta *wcn36xx_sta_to_priv(struct ieee80211_sta *sta) return (struct wcn36xx_sta *)sta->drv_priv; } +static inline u8 get_sta_index(struct ieee80211_vif *vif, + struct wcn36xx_sta *sta_priv) +{ + return vif->type == NL80211_IFTYPE_STATION ? + sta_priv->bss_sta_index : + sta_priv->sta_index; +} + #endif /* _WCN36XX_H_ */ -- 2.25.1
Powered by blists - more mailing lists