Search Linux Wireless

Re: [PATCH 2/4] nl80211: back to default bitrate_mask correctly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3 December 2013 15:20, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote:
> On Tue, 2013-12-03 at 09:50 +0100, Janusz Dziedzic wrote:
>> In case of empty NL80211_ATTR_TX_RATES attribute
>> in nl80211_set_tx_bitrate_mask() function back to
>> default bitrate mask.
>
> Err what?
>
>> +++ b/net/wireless/nl80211.c
>> @@ -7311,9 +7311,6 @@ static int nl80211_set_tx_bitrate_mask(struct sk_buff *skb,
>>       struct nlattr *tx_rates;
>>       struct ieee80211_supported_band *sband;
>>
>> -     if (info->attrs[NL80211_ATTR_TX_RATES] == NULL)
>> -             return -EINVAL;
>
> Why?
In case we will execute:
iw wlanX set bitrate
with this patch we will back to default - defined by capabilities
(driver) startup values for both legacy and ht (and VHT with last
patch).

Without this patch I don't see an option how to do that from iw. Or I
miss something

BR
Janusz
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux