> >> I would like to enable TPC in ath9k using iw command: >> >> iw dev wlan0 set txpower auto >> >> I knew user_power_level is set to IEEE80211_UNSET_POWER_LEVEL in that >> case. Is there a better way than to check user_power_level? > > But ... the API already allows for that flexibility? I think if anything > you should expose the "TX power type" that the nl80211 API has. > I just need to notify lower driver (ath9k in my case) to setup TPC registers in order to take into account TX power configured in frame descriptors. For that purpose I added tpc_enabled flags in ieee80211_bss_conf and in ieee80211_conf. Is there any other variables I can use to notify that configuration? Lorenzo > johannes > -- 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 -- 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