mac80211/drivers: rewrite the rate control API
So after the previous changes we were still unhappy with how convoluted the API is and decided to make things simpler for everybody. This completely changes the rate control API, now taking into account 802.11n with MCS rates and more control, most drivers don't support that though. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
cb121bad67
commit
e6a9854b05
@@ -636,8 +636,8 @@ static int ieee80211_ioctl_giwrate(struct net_device *dev,
|
||||
|
||||
sta = sta_info_get(local, sdata->u.sta.bssid);
|
||||
|
||||
if (sta && sta->last_txrate_idx < sband->n_bitrates)
|
||||
rate->value = sband->bitrates[sta->last_txrate_idx].bitrate;
|
||||
if (sta && !(sta->last_tx_rate.flags & IEEE80211_TX_RC_MCS))
|
||||
rate->value = sband->bitrates[sta->last_tx_rate.idx].bitrate;
|
||||
else
|
||||
rate->value = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user