From: Min-Wook Jeong Date: Tue, 9 Nov 2010 09:59:26 -0800 (PST) Subject: [ath9k-devel] [Help] Performing per packet Power and Rate control In-Reply-To: <1329023625.140233.1288217979732.JavaMail.root@zm03.stanford.edu> Message-ID: <1167293324.180691.1289325566312.JavaMail.root@zm03.stanford.edu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Hi! We would like to post a new question about the power and rate control. We have tried a power control with Netgear WNA1100 (ath9k_htc) adapter. Apparently, this adapter seems to be supporting power control as we can issue the command like sudo iw dev wlan1 set txpower fixed 1800 and verify that the txpower is changed to 18dBm via 'iwconfig' output. However, actual signal strength measurement shows that the adapter uses the same power. Therefore, we inserted the code REG_WRITE(ah, AR_PHY_POWER_TX_RATE_MAX, MAX_RATE_POWER | AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE) you suggested in the driver and testing. We are curious about 1. Are 'ath9k' and 'ath9k_htc' different in terms of transmit power control (TPC)? 'ath9k' obviously supports TPC but if 'ath9k_htc' does not, we will try our experiment with another WLAN adapter with 'ath9k' driver. 2. It is about bitrate control. Currently, our device WNA1100 does not allow us to change the bitrate by issuing the command like sudo iw dev wlan1 set bitrates legacy-2.4 36 Is it common with all adapters with 'ath9k' and 'ath9k_htc' or is is a problem with this particular adapter? 3. If we can do the bitrate control by setting up the proper register, could you tell us how to do that? Thank you, Min-Wook ----- Original Message ----- From: "Min-Wook Jeong" To: "Lorenzo Bianconi" Cc: ath9k-devel at lists.ath9k.org, "Abdul Kader Kabbani" , "Nick Bambos" , jmounzer at stanford.edu Sent: Wednesday, October 27, 2010 3:19:39 PM Subject: Re: [ath9k-devel] [Help] Performing per packet Power and Rate control Hi, Lorenzo! Thank you for your reply. Now as we try to implement our algorithm to the real wireless devices, we would like to purchase some Atheros WLAN adapters, whose specification requirements are as follows. - Adapters for laptop or netbooks with Linux. - Runs with Linux ath9k (or ath5k) driver. - Support of per-packet TPC, which users can manipulate via driver or Linux code. can . We are afraid that some adapters might support TPC physically but blocks users from playing with it. - Form factor: USB will be best. If not, CARDBUS/PCMCIA is our second choice. If you have a good adapter that fulfills the requirements, could you please let us know? Thank you, Min-Wook ----- Original Message ----- From: "Lorenzo Bianconi" To: minwook at stanford.edu Cc: ath9k-devel at lists.ath9k.org Sent: Wednesday, October 27, 2010 10:54:56 AM Subject: Re: [ath9k-devel] [Help] Performing per packet Power and Rate control > Hi! > Hi, > We are trying to test a new link layer adaptation algorithm on a real ath9k > WLAN cards. > For this, we want to change the transmission power and datarate for each > 802.11 frame. > > Can you tell me which part of the linux kernel we have to change to > implement this? > To change the TX power on frame basis, you have to enable TPC in the HW: REG_WRITE(ah, AR_PHY_POWER_TX_RATE_MAX, MAX_RATE_POWER | AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE) Please remember to enable this feature after each reset. > Thank you, > Min-Wook > > _______________________________________________ > ath9k-devel mailing list > ath9k-devel at lists.ath9k.org > https://lists.ath9k.org/mailman/listinfo/ath9k-devel > > Regards Lorenzo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20101109/7e715617/attachment.htm