LinuxKPI: 802.11: implement ieee80211_is_pspoll()
Implement ieee80211_is_pspoll() and move it up to the set of implemented ieee80211_is_*() functions. There are no further changes (git diff just looks weird). Sponsored by: The FreeBSD Foundation MFC after: 3 days
This commit is contained in:
parent
5a9a0d7803
commit
ff76cbc81d
@ -1350,6 +1350,17 @@ ieee80211_is_any_nullfunc(__le16 fc)
|
||||
return (ieee80211_is_nullfunc(fc) || ieee80211_is_qos_nullfunc(fc));
|
||||
}
|
||||
|
||||
static bool
|
||||
ieee80211_is_pspoll(__le16 fc)
|
||||
{
|
||||
__le16 v;
|
||||
|
||||
fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK);
|
||||
v = htole16(IEEE80211_FC0_SUBTYPE_PS_POLL | IEEE80211_FC0_TYPE_CTL);
|
||||
|
||||
return (fc == v);
|
||||
}
|
||||
|
||||
static __inline bool
|
||||
ieee80211_vif_is_mesh(struct ieee80211_vif *vif)
|
||||
{
|
||||
@ -1371,13 +1382,6 @@ ieee80211_is_first_frag(__le16 fc)
|
||||
return (false);
|
||||
}
|
||||
|
||||
static __inline bool
|
||||
ieee80211_is_pspoll(__le16 fc)
|
||||
{
|
||||
TODO();
|
||||
return (false);
|
||||
}
|
||||
|
||||
static __inline bool
|
||||
ieee80211_is_robust_mgmt_frame(struct sk_buff *skb)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user