提交 60c2ef0e 编写于 作者: S Sergey Matyukevich 提交者: Johannes Berg

mac80211: fix variable names in TID config methods

Fix all variable names from 'tid' to 'tids' to avoid confusion.
Now this is not TID number, but TID mask.
Signed-off-by: NSergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Link: https://lore.kernel.org/r/20200424112905.26770-3-sergey.matyukevich.os@quantenna.comSigned-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 2d5d9b7f
...@@ -3957,7 +3957,7 @@ static int ieee80211_set_tid_config(struct wiphy *wiphy, ...@@ -3957,7 +3957,7 @@ static int ieee80211_set_tid_config(struct wiphy *wiphy,
static int ieee80211_reset_tid_config(struct wiphy *wiphy, static int ieee80211_reset_tid_config(struct wiphy *wiphy,
struct net_device *dev, 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 ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
struct sta_info *sta; struct sta_info *sta;
...@@ -3967,7 +3967,7 @@ static int ieee80211_reset_tid_config(struct wiphy *wiphy, ...@@ -3967,7 +3967,7 @@ static int ieee80211_reset_tid_config(struct wiphy *wiphy,
return -EOPNOTSUPP; return -EOPNOTSUPP;
if (!peer) 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); mutex_lock(&sdata->local->sta_mtx);
sta = sta_info_get_bss(sdata, peer); sta = sta_info_get_bss(sdata, peer);
...@@ -3976,7 +3976,7 @@ static int ieee80211_reset_tid_config(struct wiphy *wiphy, ...@@ -3976,7 +3976,7 @@ static int ieee80211_reset_tid_config(struct wiphy *wiphy,
return -ENOENT; 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); mutex_unlock(&sdata->local->sta_mtx);
return ret; return ret;
......
...@@ -1375,12 +1375,12 @@ static inline int drv_set_tid_config(struct ieee80211_local *local, ...@@ -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, static inline int drv_reset_tid_config(struct ieee80211_local *local,
struct ieee80211_sub_if_data *sdata, struct ieee80211_sub_if_data *sdata,
struct ieee80211_sta *sta, u8 tid) struct ieee80211_sta *sta, u8 tids)
{ {
int ret; int ret;
might_sleep(); 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); trace_drv_return_int(local, ret);
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册