vanhoefm / modwifi

462 stars 127 forks source link

how to set txpower #3

Closed jackieshih closed 7 years ago

jackieshih commented 8 years ago

Hi, I'm researching how to create power adaptive over the AR9271 with raspberry pi 2,I want to change txpower in monitor mode, But when I use "iw dev wlan0 set txpower fixed 500".It looks like no problem.But the txpower won't change, it's still 20 dBm Now,I have the source firmware source,can you give me some suggestion?

vanhoefm commented 8 years ago

You can try to look and experiment with the MAC_PCU_TPC register: "This register set the transmit power for selfgenerated response frames." See https://github.com/vanhoefm/modwifi-ath9k-htc/blob/research/docs/AR9271.pdf and https://github.com/vanhoefm/modwifi-ath9k-htc/blob/research/docs/AR9280.pdf

Try grepping through the firmware code on words like "power", "tpc", "pwr", etc. Maybe you can find something usefull.