[FS#697] LEDE tl-wdr3320-v2 No 2.4GHz

LEDE Bugs lede-bugs at lists.infradead.org
Mon Apr 10 11:48:21 PDT 2017


The following task has a new comment added:

FS#697 - LEDE tl-wdr3320-v2 No 2.4GHz
User who did this - Mathias Kresin (mkresin)

----------
Okay, I was able to reproduce the issue using your eeprom/caldata dump.

The issue you are having is a wrong endianness bit in your caldata for the pci wireless. The endianness bit (eepMisc) is set to little endian but your caldata is big endian.

The mismatch was most likely ignored till http://ath9k-devel.ath9k.narkive.com/2q5A6nu0/patch-0-5-ath9k-eeprom-swapping-improvements was applied upstream a few month ago .

I've done a quick compare with the caldata of my bt-hh5a (AR9227):

bt-hh5a (AR9227):

length: 02d7
checksum: bade
version: e004
opcapsflags: 16
eepMisc: 01

                 opcapsflags: 10110
                              
AR5416_OPFLAGS_11A       = 00000001
AR5416_OPFLAGS_11G       = 00000010 < Allow 2GHz
AR5416_OPFLAGS_N_5G_HT40 = 00000100 < Disable 5G HT40
AR5416_OPFLAGS_N_2G_HT40 = 00001000
AR5416_OPFLAGS_N_5G_HT20 = 00010000 < Disable 5G HT20
AR5416_OPFLAGS_N_2G_HT20 = 00100000


tl-wdr3320-v2 (ar9287):

length: 02d7
checksum: 1b9b
version: e004
opcapsflags: 02
eepMisc: 00

                    opcapsflags: 10
                                 
AR5416_OPFLAGS_11A       = 00000001
AR5416_OPFLAGS_11G       = 00000010 < Allow 2GHz
AR5416_OPFLAGS_N_5G_HT40 = 00000100
AR5416_OPFLAGS_N_2G_HT40 = 00001000
AR5416_OPFLAGS_N_5G_HT20 = 00010000
AR5416_OPFLAGS_N_2G_HT20 = 00100000


If I fix the endianness bit (and the checksum of course) everything does work. I've attached the fixed caldata for your ar9287.

I'm not yet sure whether:


  * it is a driver bug (unlikely since it is the first report)
  * the tl-wdr3320-v2 is shipped with an incorrect art partition/caldata by default
  * you have changed/manipulated the art partition

To repeat the question asked by pepe: Did you manipulate with ART data partition in your device?
----------

One or more files have been attached.

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=697#comment2388



More information about the lede-bugs mailing list