From: Gerrit van der Bij Date: Tue, 16 Jul 2013 14:14:31 +0200 Subject: [ath9k-devel] AR9331 ath9k driver init fails when using mtd Message-ID: <2ab6601314a0d353e1bff8537d09902f@mail.vanderbij.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Hi, I have a small project where I used a 32 Mbyte flash in a TP-Link MR-11U running OpenWrt AA. The device is based on the AR9331 chip. The kernel disables the SPI interface of the AR9331, so the flash is no longer memory mapped. To compensate for this, I added a function in "ar9003_eeprom.c" for restoring the ar9300_eeprom struct from an mtd partition named 'art'. The struct is at offset 0x1000 in that partition. That seems to work, because the driver now loads with no complaints, and all fields of the struct match the expected values read from flash. The function gets called instead of "ar9003_hw_eeprom_restore_from_flash()" However, radio refuses to be enabled and 'ifconfig -a' shows a MAC of 'ff:ff:ff:ff:ff:ff'. I found one item with similar properties on this mailing list that suggests that "rx_chainmask" is set wrong (http://www.mail-archive.com/ath9k-devel at lists.ath9k.org/msg06354.html [1]), but its a different SoC and my old flash chip (containing stock openWRT with AA) was capable of using the WiFi with the correct MAC address. So I am assuming this would not apply to my issue? Some help in the right direction for fixing this would be highly appreciated, I'm not an expert on the artheros drivers ... W/regards, Gerrit Links: ------ [1] http://www.mail-archive.com/ath9k-devel at lists.ath9k.org/msg06354.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20130716/bd828158/attachment.htm