nl80211: don't clear bitrate_mask twice
Don't clear cfg80211_bitrate_mask twice in nl80211_set_tx_bitrate_mask() function. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
de61b610de
commit
7869303b17
1 changed files with 8 additions and 9 deletions
|
@ -7349,15 +7349,14 @@ static int nl80211_set_tx_bitrate_mask(struct sk_buff *skb,
|
||||||
/* Default to all rates enabled */
|
/* Default to all rates enabled */
|
||||||
for (i = 0; i < IEEE80211_NUM_BANDS; i++) {
|
for (i = 0; i < IEEE80211_NUM_BANDS; i++) {
|
||||||
sband = rdev->wiphy.bands[i];
|
sband = rdev->wiphy.bands[i];
|
||||||
mask.control[i].legacy =
|
|
||||||
sband ? (1 << sband->n_bitrates) - 1 : 0;
|
if (!sband)
|
||||||
if (sband)
|
continue;
|
||||||
memcpy(mask.control[i].mcs,
|
|
||||||
sband->ht_cap.mcs.rx_mask,
|
mask.control[i].legacy = (1 << sband->n_bitrates) - 1;
|
||||||
sizeof(mask.control[i].mcs));
|
memcpy(mask.control[i].mcs,
|
||||||
else
|
sband->ht_cap.mcs.rx_mask,
|
||||||
memset(mask.control[i].mcs, 0,
|
sizeof(mask.control[i].mcs));
|
||||||
sizeof(mask.control[i].mcs));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue