mac80211: use new helpers in util.c - ieee80211_get_bssid()
Subsystems (2)
PATCH 5/7 mac80211: use new helpers in util.c - ieee80211_get_bssid()
Signed-off-by Harvey Harrison <[email protected]>
--- include/linux/ieee80211.h | 14 ++++++++++++++ net/mac80211/util.c | 41 +++++++++++++++++++---------------------- 2 files changed, 33 insertions(+), 22 deletions(-)
include/linux/ieee80211.h +14 -0
@@ -171,6 +171,20 @@ static inline int ieee80211_data_has_qos(__le16 fc)cpu_to_le16 (IEEE80211_FTYPE_DATA |IEEE80211_STYPE_QOS_DATA ); } +static inline int ieee80211_ctl_is_pspoll (__le16 fc) +{ +return (fc & +cpu_to_le16 (IEEE80211_FCTL_FTYPE |IEEE80211_FCTL_STYPE )) == +cpu_to_le16 (IEEE80211_FTYPE_CTL |IEEE80211_STYPE_PSPOLL ); +} + +static inline int ieee80211_ctl_is_back_req (__le16 fc) +{ +return (fc & +cpu_to_le16 (IEEE80211_FCTL_FTYPE |IEEE80211_FCTL_STYPE )) == +cpu_to_le16 (IEEE80211_FTYPE_CTL |IEEE80211_STYPE_BACK_REQ ); +} +struct ieee80211s_hdr {u8 flags;u8 ttl;
net/mac80211/util.c +19 -22
68 lines not on this page · raw message
Signature · 1 line
1.5.6.rc1.257.gba91d