Skip to contentSkip to conversation

mac80211: use new helpers in util.c - ieee80211_get_bssid()

PATCH Superseded Harvey Harrison 1 participant 1 message Jun 6, 2008

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 5/7 mac80211: use new helpers in util.c - ieee80211_get_bssid()

---
 include/linux/ieee80211.h |   14 ++++++++++++++
 net/mac80211/util.c       |   41 +++++++++++++++++++----------------------
 2 files changed, 33 insertions(+), 22 deletions(-)
include/linux/ieee80211.h +14 -0
index 9496bea..ddd8bee 100644
@@ -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