]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
mac80211: fix variable names in TID config methods
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Fri, 24 Apr 2020 11:29:02 +0000 (14:29 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 27 May 2020 08:02:01 +0000 (10:02 +0200)
Fix all variable names from 'tid' to 'tids' to avoid confusion.
Now this is not TID number, but TID mask.

Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Link: https://lore.kernel.org/r/20200424112905.26770-3-sergey.matyukevich.os@quantenna.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/driver-ops.h

index 548a384b0509902d153cbfba623432441547af49..06a2b7640a9db365ea34262153cce00649fcaad9 100644 (file)
@@ -3957,7 +3957,7 @@ static int ieee80211_set_tid_config(struct wiphy *wiphy,
 
 static int ieee80211_reset_tid_config(struct wiphy *wiphy,
                                      struct net_device *dev,
-                                     const u8 *peer, u8 tid)
+                                     const u8 *peer, u8 tids)
 {
        struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
        struct sta_info *sta;
@@ -3967,7 +3967,7 @@ static int ieee80211_reset_tid_config(struct wiphy *wiphy,
                return -EOPNOTSUPP;
 
        if (!peer)
-               return drv_reset_tid_config(sdata->local, sdata, NULL, tid);
+               return drv_reset_tid_config(sdata->local, sdata, NULL, tids);
 
        mutex_lock(&sdata->local->sta_mtx);
        sta = sta_info_get_bss(sdata, peer);
@@ -3976,7 +3976,7 @@ static int ieee80211_reset_tid_config(struct wiphy *wiphy,
                return -ENOENT;
        }
 
-       ret = drv_reset_tid_config(sdata->local, sdata, &sta->sta, tid);
+       ret = drv_reset_tid_config(sdata->local, sdata, &sta->sta, tids);
        mutex_unlock(&sdata->local->sta_mtx);
 
        return ret;
index 3877710e3b48eae7fc08c41b1980a43e78114bb1..de69fc9c4f07b05a7db3bd1674487571fcfa543e 100644 (file)
@@ -1375,12 +1375,12 @@ static inline int drv_set_tid_config(struct ieee80211_local *local,
 
 static inline int drv_reset_tid_config(struct ieee80211_local *local,
                                       struct ieee80211_sub_if_data *sdata,
-                                      struct ieee80211_sta *sta, u8 tid)
+                                      struct ieee80211_sta *sta, u8 tids)
 {
        int ret;
 
        might_sleep();
-       ret = local->ops->reset_tid_config(&local->hw, &sdata->vif, sta, tid);
+       ret = local->ops->reset_tid_config(&local->hw, &sdata->vif, sta, tids);
        trace_drv_return_int(local, ret);
 
        return ret;