From mboxrd@z Thu Jan 1 00:00:00 1970 From: miaoqing at codeaurora.org Date: Mon, 21 Nov 2016 05:56:35 -0000 Subject: [ath9k-devel] [PATCH 4.9.0-rc5] AR9300 calibration problems with antenna selected In-Reply-To: <61055e757c5645dfb69da3fc555cbcf5@aptaiexm02f.ap.qualcomm.com> References: <61055e757c5645dfb69da3fc555cbcf5@aptaiexm02f.ap.qualcomm.com> Message-ID: <2ea016e563f5db553f201a7d4205c2c0@codeaurora.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org I would prefer that you didn't submit this. > > I recently tried to select a single antenna on AR9300 and it works for > 30 seconds only. The subsequent calibration makes the RX signal level > to drop from the usual -30/-40 dBm to -70/-80 dBm, and the > transmission practically stops. > > With the attached patch it works, though selecting the antenna doesn't > seem to have any visible effect, at least with "iw wlanX station dump" > (perhaps it works for TX). > > I'm using ad-hoc mode: > > rmmod ath9k > modprobe ath9k > iw dev wlan0 set type ibss > iw phy phyX set antenna 2 2 is a bad mask. We use bitmap, the valid masks are 1, 3, 7. -- Miaoqing