Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157040393
D45819.id140412.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D45819.id140412.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/net/mac80211.h b/sys/compat/linuxkpi/common/include/net/mac80211.h
--- a/sys/compat/linuxkpi/common/include/net/mac80211.h
+++ b/sys/compat/linuxkpi/common/include/net/mac80211.h
@@ -2077,6 +2077,32 @@
TODO();
}
+/* -------------------------------------------------------------------------- */
+
+static inline bool
+ieee80211_sn_less(uint16_t sn1, uint16_t sn2)
+{
+ return (IEEE80211_SEQ_BA_BEFORE(sn1, sn2));
+}
+
+static inline uint16_t
+ieee80211_sn_inc(uint16_t sn)
+{
+ return (IEEE80211_SEQ_INC(sn));
+}
+
+static inline uint16_t
+ieee80211_sn_add(uint16_t sn, uint16_t a)
+{
+ return (IEEE80211_SEQ_ADD(sn, a));
+}
+
+static inline uint16_t
+ieee80211_sn_sub(uint16_t sa, uint16_t sb)
+{
+ return (IEEE80211_SEQ_SUB(sa, sb));
+}
+
static __inline void
ieee80211_mark_rx_ba_filtered_frames(struct ieee80211_sta *sta, uint8_t tid,
uint32_t ssn, uint64_t bitmap, uint16_t received_mpdu)
@@ -2084,33 +2110,35 @@
TODO();
}
-static __inline bool
-ieee80211_sn_less(uint16_t sn1, uint16_t sn2)
+static __inline void
+ieee80211_stop_rx_ba_session(struct ieee80211_vif *vif, uint32_t x, uint8_t *addr)
{
TODO();
- return (false);
}
-static __inline uint16_t
-ieee80211_sn_inc(uint16_t sn)
+static __inline void
+ieee80211_rx_ba_timer_expired(struct ieee80211_vif *vif, uint8_t *addr,
+ uint8_t tid)
{
TODO();
- return (sn + 1);
}
-static __inline uint16_t
-ieee80211_sn_add(uint16_t sn, uint16_t a)
+static __inline void
+ieee80211_start_rx_ba_session_offl(struct ieee80211_vif *vif, uint8_t *addr,
+ uint8_t tid)
{
TODO();
- return (sn + a);
}
static __inline void
-ieee80211_stop_rx_ba_session(struct ieee80211_vif *vif, uint32_t x, uint8_t *addr)
+ieee80211_stop_rx_ba_session_offl(struct ieee80211_vif *vif, uint8_t *addr,
+ uint8_t tid)
{
TODO();
}
+/* -------------------------------------------------------------------------- */
+
static __inline void
ieee80211_rate_set_vht(struct ieee80211_tx_rate *r, uint32_t f1, uint32_t f2)
{
@@ -2143,27 +2171,12 @@
TODO();
}
-static __inline void
-ieee80211_rx_ba_timer_expired(struct ieee80211_vif *vif, uint8_t *addr,
- uint8_t tid)
-{
- TODO();
-}
-
static __inline void
ieee80211_send_eosp_nullfunc(struct ieee80211_sta *sta, uint8_t tid)
{
TODO();
}
-static __inline uint16_t
-ieee80211_sn_sub(uint16_t sa, uint16_t sb)
-{
-
- return ((sa - sb) &
- (IEEE80211_SEQ_SEQ_MASK >> IEEE80211_SEQ_SEQ_SHIFT));
-}
-
static __inline void
ieee80211_sta_block_awake(struct ieee80211_hw *hw, struct ieee80211_sta *sta,
bool disable)
@@ -2459,20 +2472,6 @@
TODO();
}
-static __inline void
-ieee80211_start_rx_ba_session_offl(struct ieee80211_vif *vif, uint8_t *addr,
- uint8_t tid)
-{
- TODO();
-}
-
-static __inline void
-ieee80211_stop_rx_ba_session_offl(struct ieee80211_vif *vif, uint8_t *addr,
- uint8_t tid)
-{
- TODO();
-}
-
static __inline void
ieee80211_tx_rate_update(struct ieee80211_hw *hw, struct ieee80211_sta *sta,
struct ieee80211_tx_info *info)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 19, 2:18 AM (10 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33247967
Default Alt Text
D45819.id140412.diff (2 KB)
Attached To
Mode
D45819: LinuxKPI: 802.11: implement ieee80211_sn_*()
Attached
Detach File
Event Timeline
Log In to Comment