From: Sujith Manoharan Date: Wed, 8 Jan 2014 07:38:34 +0530 Subject: [ath9k-devel] ath: phy0: unsupported hw bitrate detected 0x1b using 1 Mbit In-Reply-To: <52CC6896.1090909@rempel-privat.de> References: <52B09758.9070801@rempel-privat.de> <21170.25746.772628.529123@gargle.gargle.HOWL> <52B2A15F.7030208@rempel-privat.de> <21196.10937.962241.311049@gargle.gargle.HOWL> <52CC6896.1090909@rempel-privat.de> Message-ID: <21196.45858.877639.854078@gargle.gargle.HOWL> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Oleksij Rempel wrote: > Am 07.01.2014 17:26, schrieb Sujith Manoharan: > > Oleksij Rempel wrote: > >>> Does this happen a lot ? > >> > >> It depends on how intensively WiFi is used. > >> > >> See attachment > >> > >> [ 657.383048] ath: phy0: unsupported hw bitrate detected 0x1b using 1 Mbit > >> [ 657.703201] ath: phy0: unsupported hw bitrate detected 0x1b using 1 Mbit > > > > Can you load the driver with debug=0x200 (with latest wireless-testing) and > > post the kernel log when the issue happens ? > > looks like happens at scan time: > [ 3161.475583] ath: phy3: Reset to 2442 MHz, HT40: 0 fastcc: 1 > [ 3161.540259] ath: phy3: Set channel: 5180 MHz width: 2 > [ 3161.540394] ath: phy3: unsupported hw bitrate detected 0x1b using 1 Mbit > [ 3161.540414] ath: phy3: Reset to 5180 MHz, HT40: 1 fastcc: 0 > [ 3161.744603] ath: phy3: Set channel: 2447 MHz width: 0 > [ 3161.744748] ath: phy3: Reset to 2447 MHz, HT40: 0 fastcc: 1 Yes, that was my suspicion. Can you try this patch ? diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index 6d643ca..a638f3a 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c @@ -850,8 +850,9 @@ static int ath9k_process_rate(struct ath_common *common, enum ieee80211_band band; unsigned int i = 0; struct ath_softc __maybe_unused *sc = common->priv; + struct ath_hw *ah = common->ah; - band = hw->conf.chandef.chan->band; + band = ah->curchan->chan->band; sband = hw->wiphy->bands[band]; switch (hw->conf.chandef.width) { Sujith