#6411: ATH9K kernel warning
-------------------------------+---------------------------------------
Reporter: newvisionantenna | Owner: nbd
Type: defect | Status: reopened
Priority: response-needed | Milestone: Attitude Adjustment 12.09
Component: packages | Version: Trunk
Resolution: | Keywords: ath9k
-------------------------------+---------------------------------------
Comment (by vquicksilver):
Sorry the previous patch was intended for patching the kernel, but OpenWRT
uses the drivers in compat-wireless the following patch should work as
expected for debugging (I compiled trunk r41677 with it), just copy it to
./package/kernel/mac80211/patches/568-ath9k-debug.patch and build trunk
with it. (Yeah I'm a newbie with all this things sorry for that).
{{{
--- a/drivers/net/wireless/ath/ath9k/mac.c 2014-07-17
12:13:38.018628305 +0200
+++ b/drivers/net/wireless/ath/ath9k/mac.c 2014-07-17
11:59:25.328937179 +0200
@@ -591,6 +591,21 @@
rs->rs_flags |=
(ads.ds_rxstatus3 & AR_2040) ? ATH9K_RX_2040 : 0;
+ /* Debug patch */
+ if( (rs->rs_rate & 0x80) ) {
+ if ((rs->rs_rate & 0x7f) > 76) {
+ printk("status0:%x\n",ads.ds_rxstatus0);
+ printk("status1:%x\n",ads.ds_rxstatus1);
+ printk("status2:%x\n",ads.ds_rxstatus2);
+ printk("status3:%x\n",ads.ds_rxstatus3);
+ printk("status4:%x\n",ads.ds_rxstatus4);
+ printk("status5:%x\n",ads.ds_rxstatus5);
+ printk("status6:%x\n",ads.ds_rxstatus6);
+ printk("status7:%x\n",ads.ds_rxstatus7);
+ printk("status8:%x\n",ads.ds_rxstatus8);
+ }
+ }
+
if (ads.ds_rxstatus8 & AR_PreDelimCRCErr)
rs->rs_flags |= ATH9K_RX_DELIM_CRC_PRE;
if (ads.ds_rxstatus8 & AR_PostDelimCRCErr)
@@ -609,12 +624,14 @@
rs->rs_status |= ATH9K_RXERR_PHY;
phyerr = MS(ads.ds_rxstatus8, AR_PHYErrCode);
rs->rs_phyerr = phyerr;
- } else if (ads.ds_rxstatus8 & AR_CRCErr)
+ } else if (ads.ds_rxstatus8 & AR_CRCErr) {
rs->rs_status |= ATH9K_RXERR_CRC;
- else if (ads.ds_rxstatus8 & AR_DecryptCRCErr)
+ } else if (ads.ds_rxstatus8 & AR_DecryptCRCErr) {
rs->rs_status |= ATH9K_RXERR_DECRYPT;
- else if (ads.ds_rxstatus8 & AR_MichaelErr)
+ }
+ else if (ads.ds_rxstatus8 & AR_MichaelErr) {
rs->rs_status |= ATH9K_RXERR_MIC;
+ }
} else {
if (ads.ds_rxstatus8 &
(AR_CRCErr | AR_PHYErr | AR_DecryptCRCErr |
AR_MichaelErr))
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/6411#comment:135>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets