Re: [PATCHv3] mac80211: enable TPC through mac80211 stack
From: Lorenzo Bianconi <hidden>
Date: 2015-01-06 16:28:41
From: Lorenzo Bianconi <hidden>
Date: 2015-01-06 16:28:41
On Wed, 2014-12-24 at 10:21 +0100, Lorenzo Bianconi wrote:quoted
- list_for_each_entry(sdata, &local->interfaces, list) + list_for_each_entry(sdata, &local->interfaces, list) { sdata->user_power_level = local->user_power_level; + if (!update_tpc && type != sdata->vif.bss_conf.txpower_type) + update_tpc = true;Why bother checking - if it's already true then setting it to true won't matter, and IMHO makes the code easier to read. I also think "update_tpc" is a bad name - transmit power control is the actual usage here, but you really mean "update_txp_type" or so.
ack. V4 on the way
johannes
Best regards, Lorenzo -- UNIX is Sexy: who | grep -i blonde | talk; cd ~; wine; talk; touch; unzip; touch; strip; gasp; finger; gasp; mount; fsck; more; yes; gasp; umount; make clean; sleep