Search Linux Wireless

Re: [PATCH v9 2/6] mt76: mt76x02: split beaconing

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

 



On 12/18/19 10:37 AM, Lorenzo Bianconi wrote:
> [...]
>>  
>> @@ -244,19 +248,15 @@ static void mt76x02u_pre_tbtt_enable(struct mt76x02_dev *dev, bool en)
>>  
>>  static void mt76x02u_beacon_enable(struct mt76x02_dev *dev, bool en)
>>  {
>> -	int i;
>> -
>>  	if (WARN_ON_ONCE(!dev->mt76.beacon_int))
>>  		return;
>>  
>>  	if (en) {
>>  		mt76x02u_start_pre_tbtt_timer(dev);
>>  	} else {
>> -		/* Timer is already stopped, only clean up
>> -		 * PS buffered frames if any.
>> +		/* Timer is already stopped,
>> +		 * nothing else to do here.
>>  		 */
>> -		for (i = 0; i < N_BCN_SLOTS; i++)
>> -			mt76x02_mac_set_beacon(dev, i, NULL);
>>  	}
> I guess here you can get rid of 'else' branch
>
> Regards,
> Lorenzo

I changed my patch regarding to your suggestions. I'll wait with sending
another iteration on comments to the
4B alignment of beacons.

Markus

>>  }
>>  
>> -- 
>> 2.24.0
>>



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

  Powered by Linux