mac80211: add documentation to ieee80211_rx_ba_offl()
authorLuca Coelho <luciano.coelho@intel.com>
Fri, 18 Aug 2017 12:33:56 +0000 (15:33 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 21 Sep 2017 09:42:00 +0000 (11:42 +0200)
Add documentation to ieee80211_rx_ba_offl() function and, while at it,
rename the bit argument to tid, for consistency.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/agg-rx.c

index 885690fa39c8d8f4a48f2fa25447646d3d0a7856..cc9073e45be90cb78c31c970f154f3686b4f8435 100644 (file)
@@ -5441,8 +5441,14 @@ void ieee80211_mark_rx_ba_filtered_frames(struct ieee80211_sta *pubsta, u8 tid,
  */
 void ieee80211_send_bar(struct ieee80211_vif *vif, u8 *ra, u16 tid, u16 ssn);
 
+/**
+ * ieee80211_manage_rx_ba_offl - helper to queue an RX BA work
+ * @vif: &struct ieee80211_vif pointer from the add_interface callback
+ * @addr: station mac address
+ * @tid: the rx tid
+ */
 void ieee80211_manage_rx_ba_offl(struct ieee80211_vif *vif, const u8 *addr,
-                                unsigned int bit);
+                                unsigned int tid);
 
 /**
  * ieee80211_start_rx_ba_session_offl - start a Rx BA session
index 2849a1fc41c5dbbe06a7e5c9fbb4ff6276c84394..88cc1ae935ead5f1a2b4a46d2d3af3fbf4cefd8d 100644 (file)
@@ -459,7 +459,7 @@ void ieee80211_process_addba_request(struct ieee80211_local *local,
 }
 
 void ieee80211_manage_rx_ba_offl(struct ieee80211_vif *vif,
-                                const u8 *addr, unsigned int bit)
+                                const u8 *addr, unsigned int tid)
 {
        struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
        struct ieee80211_local *local = sdata->local;
@@ -470,7 +470,7 @@ void ieee80211_manage_rx_ba_offl(struct ieee80211_vif *vif,
        if (!sta)
                goto unlock;
 
-       set_bit(bit, sta->ampdu_mlme.tid_rx_manage_offl);
+       set_bit(tid, sta->ampdu_mlme.tid_rx_manage_offl);
        ieee80211_queue_work(&local->hw, &sta->ampdu_mlme.work);
  unlock:
        rcu_read_unlock();