Search Linux Wireless

Re: [PATCH]: setting bit-rate when injecting

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

 



On Mon, Nov 9, 2009 at 5:50 PM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote:
>>       sband = tx->local->hw.wiphy->bands[tx->channel->band];
>>
>> @@ -979,6 +984,25 @@
>>                               tx->flags |= IEEE80211_TX_FRAGMENTED;
>>                       break;
>>
>> +             case IEEE80211_RADIOTAP_RATE:
>> +                     rates = sband->bitrates;
>> +                     for (i = 0; i < sband->n_bitrates; i++) {
>> +                             if (rates[i].bitrate/5 == *iterator.this_arg) {
>> +                                     info->control.rates[0].idx = i;
>> +                                     break;
>> +                             }
>> +                     }
>> +                     info->control.rates[0].flags = 0;
>
> This leaves the number of retries at ... 0. That makes no sense. What
> driver are you using that this actually works with?!

Oh no, the retries are set in the IEEE80211_RADIOTAP_DATA_RETRIES case,
parsed from the radiotap header
--
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 Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux