mac80211: convert to channel definition struct
Convert mac80211 (and where necessary, some drivers a little bit) to the new channel definition struct. This will allow extending mac80211 for VHT, which is currently restricted to channel contexts since there are no drivers using that which makes it easier. As I also don't care about VHT for drivers not using the channel context API, I won't convert the previous API to VHT support. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
这个提交包含在:
@@ -391,7 +391,7 @@ static void rate_idx_match_mask(struct ieee80211_tx_rate *rate,
|
||||
return;
|
||||
|
||||
/* if HT BSS, and we handle a data frame, also try HT rates */
|
||||
if (txrc->bss_conf->channel_type == NL80211_CHAN_NO_HT)
|
||||
if (txrc->bss_conf->chandef.width == NL80211_CHAN_WIDTH_20_NOHT)
|
||||
return;
|
||||
|
||||
fc = hdr->frame_control;
|
||||
@@ -408,8 +408,7 @@ static void rate_idx_match_mask(struct ieee80211_tx_rate *rate,
|
||||
|
||||
alt_rate.flags |= IEEE80211_TX_RC_MCS;
|
||||
|
||||
if ((txrc->bss_conf->channel_type == NL80211_CHAN_HT40MINUS) ||
|
||||
(txrc->bss_conf->channel_type == NL80211_CHAN_HT40PLUS))
|
||||
if (txrc->bss_conf->chandef.width == NL80211_CHAN_WIDTH_40)
|
||||
alt_rate.flags |= IEEE80211_TX_RC_40_MHZ_WIDTH;
|
||||
|
||||
if (rate_idx_match_mcs_mask(&alt_rate, mcs_mask)) {
|
||||
|
在新工单中引用
屏蔽一个用户