Linux wireless drivers development
 help / color / mirror / Atom feed
* Re: [PATCH v2 13/16] wcn36xx: add wcn36xx.h
From: Joe Perches @ 2013-09-02 17:49 UTC (permalink / raw)
  To: Kalle Valo; +Cc: Eugene Krasnikov, linux-wireless, wcn36xx
In-Reply-To: <87ioyjux5w.fsf@purkki.adurom.net>

On Mon, 2013-09-02 at 17:15 +0300, Kalle Valo wrote:
> Joe Perches <joe@perches.com> writes:
> 
> >> +#define wcn36xx_dbg(mask, fmt, arg...) do {			\
> >> +	if (debug_mask & mask)					\
> >> +		printk(KERN_DEBUG pr_fmt(fmt), ##arg);	\
> >> +} while (0)
> >
> > And maybe this one using pr_debug so dynamic_debug
> > can work too.
> 
> Please, no dynamic_debug. It's useless on a wifi driver.

Why is that?


^ permalink raw reply

* Re: [PATCH] wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware
From: Eugene Krasnikov @ 2013-09-02 18:54 UTC (permalink / raw)
  To: Hauke Mehrtens; +Cc: John Linville, linux-wireless, wcn36xx
In-Reply-To: <5224A1F9.3030907@hauke-m.de>

Will check with legal department if licenses are compliant and come back to you.
But I guess for driver contribution it's not mandatory.

2013/9/2 Hauke Mehrtens <hauke@hauke-m.de>:
> On 09/02/2013 12:38 PM, Eugene Krasnikov wrote:
>> This is a mac80211 driver for Qualcomm WCN3660/WCN3680 devices. So
>> far WCN3660/WCN3680 is available only on MSM platform.
>>
>> Firmware can be found here:
>> https://github.com/AOKP/vendor_sony/find/jb-mr1
>
> Will you send the firmware for inclusion to linux-fimware?
> I am also missing the firmware for ath10k there.
>
>> Wiki page is available here:
>> http://wireless.kernel.org/en/users/Drivers/wcn36xx
>>
>
> Hauke
>



-- 
Best regards,
Eugene

^ permalink raw reply

* Hilarious 11n performance with iwlwifi and Thinkpad T520s
From: Yorick Peterse @ 2013-09-02 20:59 UTC (permalink / raw)
  To: linux-wireless

Hey folks,

So first of yes, the title could probably be considered "link bait" but
honestly I'm fed up with iwlwifi and 11n networks that I consider this
the most friendly subject that I can come up with.

Anyway, lets get to the problem. I'm currently using a Thinkpad T520
running Arch Linux with kernel version 3.10.10-1. The particular
wireless chipset of this laptop is a Centrino Wireless-N 1000 (Condor
Peak). Ever since day 1 of using this laptop/chipset I've been having
issues with 802.11n (in combinatio with the iwlwifi driver).

Either I couldn't connect to a network at all (e.g. with my previous
router) or performance would be hilariously slow up to the point where
even 11b would be faster. Now that I have a new router (Asus RT-N66U, I
can recommend it to those that want a decent router) I can at least
connect, sadly the performance of my laptop is still anything but
decent.

What happens is that I can connect and use 11n fine for a bit. However,
as time progresses the amount of excessive retries (as reported by
`iwconfig`) fills up up to a point where the bitrate plummets to 1MB/sec
and my log files start filling up with iwlwifi errors such as the one
seen here: http://git.io/7JLTLw (links to gist.github.com).

When this happens download speed also drops to around 1MB/sec (due to
the bitrate) and response times go up. Before Linux 3.10 (Linux 3.9 for
example) I could work around this issue by either reconnecting to the
network or reloading the driver. With Linux 3.10.10 however it seems
this doesn't do anything. In this particular log entry you can see me
reconnecting to the network on Sep 02 21:41:21 with the same errors
popping up moments later.

This particular problem isn't exactly new either, similar (or maybe even
the same) issues have been reported before:

* https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1034740
* https://bugzilla.redhat.com/show_bug.cgi?id=804259
* http://bugs.centos.org/view.php?id=6305

This would suggest to me that the issue is an actual driver issue
instead of being some race condition that only occurs on specific
hardware configurations.

The common "fix" for this problem is to disable 11n on driver level.
This isn't exactly a fix however, it's simply sticking your head in the
sand and ignoring it. I suppose that for a lot of people this is good
enough since their internet speeds don't require 11n. In my case however
I'm using a fibre internet connection and I'd like to actually be able
to use the full 10 MB/sec via the wifi connection (it's 2013 after all).

To cut a long story short, what I'd like to know is the following:

1. Is this a known issue and if so, when can we expect a fix?
2. What can I do to help out with this? Actually writing kernel code is
   way over my head but I'd love to help out by testing patches as much
   as my schedule permits.

Some extra hardware/software information in case it helps:

uname output:

    Linux tuxbook 3.10.10-1-ARCH #1 SMP PREEMPT Fri Aug 30 11:30:06 CEST
2013 x86_64 GNU/Linux

The operating system is Arch Linux 64bit. The network management
software used is Network manager 0.9.8.2-1 which uses wpa_supplicant
1.4-2 and dhcpcd 6.0.5-1 under the hood.

In total there are about 29 networks (mine included) in my area, these
operate on channels 1, 3, 4, 5, 6, 7, 8, 11 (some networks operate on
the same channel). My own network is the only one that runs on channel
5, changing channels doesn't have any affect on the performance in any
noticable way.

If there's any more info that I could/should provide I'd be happy to do
so.

Yorick Peterse

^ permalink raw reply

* WFD Development setup issues
From: HunTERminator Chief @ 2013-09-02 23:02 UTC (permalink / raw)
  To: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 4583 bytes --]

Hello all,

I am writing a C++ application to manage Wifi-Direct connections and am simply trying to get Wifi-Direct up and running at this point. 
I have compiled wpa_supplicant 2.0 on Ubuntu 12.04 using a Broadcom BCM4312 802.11b/g LP-PHY (rev 01) adapter.

When I try to initialize wpa supplicant (following these instructions: http://wireless.kernel.org/en/developers/p2p/howto )
I get the following error output:

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1378158767.776376: EAPOL: SUPP_PAE entering state DISCONNECTED
1378158767.776385: EAPOL: Supplicant port status: Unauthorized
1378158767.776417: EAPOL: KEY_RX entering state NO_KEY_RECEIVE
1378158767.776424: EAPOL: SUPP_BE entering state INITIALIZE
1378158767.776433: EAP: EAP entering state DISABLED
1378158767.776440: EAPOL: Supplicant port status: Unauthorized
1378158767.776462: EAPOL: Supplicant port status: Unauthorized
1378158767.776503: Using existing control interface directory.
1378158767.776528: ctrl_iface bind(PF_UNIX) failed: Address already in use
1378158767.776542: ctrl_iface exists and seems to be in use - cannot override it
1378158767.776547: Delete '/var/run/wpa_supplicant/eth1' manually if it is not used anymore
1378158767.776556: Failed to initialize control interface '/var/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

(Note: Broadcom names its wireless connection eth1, not wlan0)

When I then delete the 'eth1' folder from wpa_supplicant and run again I get this error:

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1378160287.325607: eth1: No suitable network found
1378160287.325617: eth1: Short-circuit new scan request since there are no enabled networks
1378160287.325627: eth1: State: INACTIVE -> INACTIVE
1378160287.325637: eth1: Checking for other virtual interfaces sharing same radio (phy0) in event_scan_results
1378160287.327677: RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
1378160287.327705: RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
1378160287.327745: nl80211: if_removed already cleared - ignore event
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

This loops over and over outputting this to the screen along with "removing" various networks that I have connected to in the past:

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1378160350.834446: eth1: BSS: Remove id 14 BSSID 00:23:69:99:55:79 SSID 'BBLink' due to wpa_bss_flush_by_age
1378160350.834480: eth1: BSS: Remove id 18 BSSID 70:56:81:84:84:d1 SSID 'Peter-NC' due to wpa_bss_flush_by_age
1378160350.834494: eth1: BSS: Remove id 19 BSSID 00:8e:f2:53:66:be SSID 'NETGEAR36' due to wpa_bss_flush_by_age
1378160350.834508: eth1: BSS: Remove id 21 BSSID 94:44:52:2f:8d:c3 SSID 'Belkin_G_Wireless_2F8DC3' due to wpa_bss_flush_by_age
1378160350.834522: eth1: BSS: Remove id 22 BSSID 00:22:3f:65:ac:f0 SSID 'Perza' due to wpa_bss_flush_by_age
1378160350.834535: eth1: BSS: Remove id 23 BSSID ec:1a:59:4a:a1:7d SSID 'belkin.17d' due to wpa_bss_flush_by_age
1378160350.834548: eth1: BSS: Remove id 24 BSSID 84:1b:5e:04:3c:8e SSID 'kirat' due to wpa_bss_flush_by_age
1378160350.834561: eth1: BSS: Remove id 26 BSSID c8:3a:35:57:3a:98 SSID '420' due to wpa_bss_flush_by_age
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I have attached the full output to this email.

Can anyone tell me why this is happening?  Or otherwise, how to get the ./wpa_supplicant to run properly?

Thanks in advance

-Brian

[-- Attachment #2: wpa_supplicant_output.txt --]
[-- Type: text/plain, Size: 23530 bytes --]

brian@Sir-Flimsy-Screen:~/wpa_supplicant-2.0/wpa_supplicant$ sudo ./wpa_supplicant -Dnl80211 -c ~/wpa_config -i eth1 -dt
1378160160.685930: wpa_supplicant v2.0
1378160160.686148: random: Trying to read entropy from /dev/random
1378160160.686257: Successfully initialized wpa_supplicant
1378160160.687770: Initializing interface 'eth1' conf '/home/brian/wpa_config' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
1378160160.687806: Configuration file '/home/brian/wpa_config' -> '/home/brian/wpa_config'
1378160160.687815: Reading configuration file '/home/brian/wpa_config'
1378160160.687883: ctrl_interface='/var/run/wpa_supplicant'
1378160160.687893: ap_scan=1
1378160160.687899: device_name='Flimsy'
1378160160.688523: nl80211: interface eth1 in phy phy0
1378160160.688551: rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
1378160160.688558: rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
1378160160.688563: rfkill: initial event: idx=2 type=1 op=0 soft=0 hard=0
1378160160.688631: nl80211: Set mode ifindex 3 iftype 2 (STATION)
1378160160.688677: nl80211: Subscribe to mgmt frames with non-AP handle 0x94d9f78
1378160160.688689: nl80211: Register frame type=0xd0 nl_handle=0x94d9f78
1378160160.688695: nl80211: Register frame match - hexdump(len=2): 04 0a
1378160160.688726: nl80211: Register frame command failed (type=208): ret=-95 (Operation not supported)
1378160160.688733: nl80211: Register frame match - hexdump(len=2): 04 0a
1378160160.688738: nl80211: Failed to register Action frame processing - ignore for now
1378160160.688747: netlink: Operstate: linkmode=1, operstate=5
1378160160.689550: nl80211: driver param='(null)'
1378160160.689680: nl80211: Regulatory information - country=00
1378160160.689698: nl80211: 2402-2472 @ 40 MHz
1378160160.689711: nl80211: 2457-2482 @ 20 MHz
1378160160.689722: nl80211: 2474-2494 @ 20 MHz
1378160160.689734: nl80211: 5170-5250 @ 40 MHz
1378160160.689745: nl80211: 5735-5835 @ 40 MHz
1378160160.689771: nl80211: Added 802.11b mode based on 802.11g information
1378160160.690628: eth1: Own MAC address: 0c:60:76:7e:87:6e
1378160160.690697: wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
1378160160.690977: wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
1378160160.691268: wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
1378160160.691556: wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
1378160160.691788: eth1: RSN: flushing PMKID list in the driver
1378160160.691817: nl80211: Flush PMKIDs
1378160160.692054: eth1: State: DISCONNECTED -> INACTIVE
1378160160.692080: WPS: Set UUID for interface eth1
1378160160.692139: WPS: UUID based on MAC address - hexdump(len=16): 30 d0 20 b4 19 36 5f eb ac 93 40 a5 26 ea ab a3
1378160160.692170: EAPOL: SUPP_PAE entering state DISCONNECTED
1378160160.692188: EAPOL: Supplicant port status: Unauthorized
1378160160.692406: EAPOL: KEY_RX entering state NO_KEY_RECEIVE
1378160160.692419: EAPOL: SUPP_BE entering state INITIALIZE
1378160160.692434: EAP: EAP entering state DISABLED
1378160160.692452: EAPOL: Supplicant port status: Unauthorized
1378160160.692483: EAPOL: Supplicant port status: Unauthorized
1378160160.692538: Using existing control interface directory.
1378160160.692594: eth1: Added interface eth1
1378160160.692612: eth1: State: INACTIVE -> DISCONNECTED
1378160160.692626: wpa_driver_nl80211_set_operstate: operstate 0->0 (DORMANT)
1378160160.692638: netlink: Operstate: linkmode=-1, operstate=5
1378160160.692992: random: Got 20/20 bytes from /dev/random
1378160160.693044: RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
1378160160.693066: RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
1378160160.693092: nl80211: if_removed already cleared - ignore event
1378160160.693107: RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
1378160160.693120: RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
1378160160.693137: nl80211: if_removed already cleared - ignore event
1378160160.693151: RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
1378160160.693164: RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
1378160160.693180: nl80211: if_removed already cleared - ignore event
1378160160.693195: RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
1378160160.693208: RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
1378160160.693224: nl80211: if_removed already cleared - ignore event
1378160161.693603: EAPOL: disable timer tick
1378160161.693625: EAPOL: Supplicant port status: Unauthorized
1378160165.370556: nl80211: Event message available
1378160165.370622: nl80211: Scan trigger
1378160167.324574: nl80211: Event message available
1378160167.324622: nl80211: New scan results available
1378160167.324646: eth1: Event SCAN_RESULTS (3) received
1378160167.324715: nl80211: Associated on 2417 MHz
1378160167.324722: nl80211: Associated with 20:aa:4b:60:7a:e3
1378160167.324818: nl80211: Received scan results (33 BSSes)
1378160167.324835: nl80211: Scan results indicate BSS status with 20:aa:4b:60:7a:e3 as associated
1378160167.324843: nl80211: Local state (not associated) does not match with BSS state
1378160167.324898: eth1: BSS: Start scan result update 1
1378160167.324909: eth1: BSS: Add new id 0 BSSID 20:aa:4b:60:7a:e3 SSID 'Internet Box UHF'
1378160167.324920: eth1: BSS: Add new id 1 BSSID 20:aa:4b:2c:18:f4 SSID 'pearl4u'
1378160167.324929: eth1: BSS: Add new id 2 BSSID 30:46:9a:64:83:de SSID 'CGD24G93'
1378160167.324938: eth1: BSS: Add new id 3 BSSID 20:4e:7f:47:a7:aa SSID 'Legaleagle'
1378160167.324948: eth1: BSS: Add new id 4 BSSID ec:1a:59:3e:96:8c SSID 'belkin.68c'
1378160167.324957: eth1: BSS: Add new id 5 BSSID 20:4e:7f:46:80:b0 SSID 'BuenaVista'
1378160167.324983: eth1: BSS: Add new id 6 BSSID ec:1a:59:9a:5a:28 SSID 'kranthi'
1378160167.324993: eth1: BSS: Add new id 7 BSSID 58:6d:8f:75:0d:96 SSID 'Harris'
1378160167.325002: eth1: BSS: Add new id 8 BSSID 00:17:3f:67:4d:9c SSID 'Magnitude'
1378160167.325012: eth1: BSS: Add new id 9 BSSID 20:aa:4b:c2:13:f0 SSID 'InquisitorSlade'
1378160167.325021: eth1: BSS: Add new id 10 BSSID ec:1a:59:a8:0e:99 SSID 'belkin.e99'
1378160167.325031: eth1: BSS: Add new id 11 BSSID 08:86:3b:a2:8d:60 SSID 'gobluedevils'
1378160167.325040: eth1: BSS: Add new id 12 BSSID 00:26:f2:f6:90:21 SSID 'Madimatt'
1378160167.325049: eth1: BSS: Add new id 13 BSSID 84:1b:5e:29:fe:5c SSID 'JOHNRO'
1378160167.325059: eth1: BSS: Add new id 14 BSSID 00:23:69:99:55:79 SSID 'BBLink'
1378160167.325068: eth1: BSS: Add new id 15 BSSID 00:24:2c:0e:46:89 SSID 'REYNOLDS'
1378160167.325078: eth1: BSS: Add new id 16 BSSID 08:86:3b:4a:5e:68 SSID 'belkin.e68'
1378160167.325087: eth1: BSS: Add new id 17 BSSID ec:1a:59:86:e6:3b SSID 'belkin.63b'
1378160167.325097: eth1: BSS: Add new id 18 BSSID 70:56:81:84:84:d1 SSID 'Peter-NC'
1378160167.325106: eth1: BSS: Add new id 19 BSSID 00:8e:f2:53:66:be SSID 'NETGEAR36'
1378160167.325116: eth1: BSS: Add new id 20 BSSID 90:72:40:0e:1e:72 SSID 'Trish's Wi-Fi Network'
1378160167.325127: eth1: BSS: Add new id 21 BSSID 94:44:52:2f:8d:c3 SSID 'Belkin_G_Wireless_2F8DC3'
1378160167.325136: eth1: BSS: Add new id 22 BSSID 00:22:3f:65:ac:f0 SSID 'Perza'
1378160167.325146: eth1: BSS: Add new id 23 BSSID ec:1a:59:4a:a1:7d SSID 'belkin.17d'
1378160167.325156: eth1: BSS: Add new id 24 BSSID 84:1b:5e:04:3c:8e SSID 'kirat'
1378160167.325170: eth1: BSS: Add new id 25 BSSID 30:46:9a:64:7c:db SSID 'AThomas'
1378160167.325181: eth1: BSS: Add new id 26 BSSID c8:3a:35:57:3a:98 SSID '420'
1378160167.325190: eth1: BSS: Add new id 27 BSSID 00:14:d1:42:9a:6a SSID '200a'
1378160167.325199: eth1: BSS: Add new id 28 BSSID 00:14:d1:42:97:52 SSID '513'
1378160167.325209: eth1: BSS: Add new id 29 BSSID e0:91:f5:ca:b9:4c SSID 'Diamond1'
1378160167.325218: eth1: BSS: Add new id 30 BSSID 58:6d:8f:75:0d:98 SSID 'Harris-guest'
1378160167.325228: eth1: BSS: Add new id 31 BSSID ec:1a:59:9a:5a:2b SSID 'belkin.a28.guests'
1378160167.325238: eth1: BSS: Add new id 32 BSSID 00:18:39:80:c1:47 SSID 'linksys'
1378160167.325248: BSS: last_scan_res_used=33/64 last_scan_full=0
1378160167.325268: eth1: New scan results available
1378160167.325302: WPS: AP 20:aa:4b:2c:18:f4 type 0 added
1378160167.325309: WPS: AP 30:46:9a:64:83:de type 0 added
1378160167.325316: WPS: AP 20:4e:7f:47:a7:aa type 0 added
1378160167.325322: WPS: AP ec:1a:59:3e:96:8c type 0 added
1378160167.325328: WPS: AP 20:4e:7f:46:80:b0 type 0 added
1378160167.325334: WPS: AP ec:1a:59:9a:5a:28 type 0 added
1378160167.325341: WPS: AP 58:6d:8f:75:0d:96 type 0 added
1378160167.325347: WPS: AP 20:aa:4b:c2:13:f0 type 0 added
1378160167.325353: WPS: AP ec:1a:59:a8:0e:99 type 0 added
1378160167.325359: WPS: AP 08:86:3b:a2:8d:60 type 0 added
1378160167.325365: WPS: AP 00:26:f2:f6:90:21 type 0 added
1378160167.325371: WPS: AP 84:1b:5e:29:fe:5c type 0 added
1378160167.325377: WPS: AP 00:23:69:99:55:79 type 0 added
1378160167.325383: WPS: AP 08:86:3b:4a:5e:68 type 0 added
1378160167.325389: WPS: AP ec:1a:59:86:e6:3b type 0 added
1378160167.325395: WPS: AP 00:8e:f2:53:66:be type 0 added
1378160167.325401: WPS: AP 94:44:52:2f:8d:c3 type 0 added
1378160167.325407: WPS: AP ec:1a:59:4a:a1:7d type 0 added
1378160167.325413: WPS: AP 84:1b:5e:04:3c:8e type 0 added
1378160167.325420: WPS: AP 30:46:9a:64:7c:db type 0 added
1378160167.325427: WPS: AP c8:3a:35:57:3a:98 type 0 added
1378160167.325433: WPS: AP e0:91:f5:ca:b9:4c type 0 added
1378160167.325442: WPS: AP[0] 20:aa:4b:2c:18:f4 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325448: WPS: AP[1] 30:46:9a:64:83:de type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325454: WPS: AP[2] 20:4e:7f:47:a7:aa type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325460: WPS: AP[3] ec:1a:59:3e:96:8c type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325466: WPS: AP[4] 20:4e:7f:46:80:b0 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325472: WPS: AP[5] ec:1a:59:9a:5a:28 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325478: WPS: AP[6] 58:6d:8f:75:0d:96 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325483: WPS: AP[7] 20:aa:4b:c2:13:f0 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325489: WPS: AP[8] ec:1a:59:a8:0e:99 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325495: WPS: AP[9] 08:86:3b:a2:8d:60 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325501: WPS: AP[10] 00:26:f2:f6:90:21 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325507: WPS: AP[11] 84:1b:5e:29:fe:5c type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325512: WPS: AP[12] 00:23:69:99:55:79 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325519: WPS: AP[13] 08:86:3b:4a:5e:68 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325525: WPS: AP[14] ec:1a:59:86:e6:3b type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325531: WPS: AP[15] 00:8e:f2:53:66:be type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325537: WPS: AP[16] 94:44:52:2f:8d:c3 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325543: WPS: AP[17] ec:1a:59:4a:a1:7d type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325548: WPS: AP[18] 84:1b:5e:04:3c:8e type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325779: WPS: AP[19] 30:46:9a:64:7c:db type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325789: WPS: AP[20] c8:3a:35:57:3a:98 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325795: WPS: AP[21] e0:91:f5:ca:b9:4c type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160167.325813: eth1: No suitable network found
1378160167.325822: eth1: Short-circuit new scan request since there are no enabled networks
1378160167.325829: eth1: State: DISCONNECTED -> INACTIVE
1378160167.325836: eth1: Checking for other virtual interfaces sharing same radio (phy0) in event_scan_results
1378160167.325859: RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
1378160167.325866: RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
1378160167.325894: nl80211: if_removed already cleared - ignore event
1378160285.371771: nl80211: Event message available
1378160285.371826: nl80211: Scan trigger
1378160287.324621: nl80211: Event message available
1378160287.324673: nl80211: New scan results available
1378160287.324691: eth1: Event SCAN_RESULTS (3) received
1378160287.324783: nl80211: Associated on 2417 MHz
1378160287.324793: nl80211: Associated with 20:aa:4b:60:7a:e3
1378160287.324931: nl80211: Received scan results (30 BSSes)
1378160287.324958: nl80211: Scan results indicate BSS status with 20:aa:4b:60:7a:e3 as associated
1378160287.324969: nl80211: Local state (not associated) does not match with BSS state
1378160287.325043: eth1: BSS: Start scan result update 2
1378160287.325095: eth1: BSS: Add new id 33 BSSID 00:15:ff:2c:ba:a6 SSID 'Verizon MIFI4510L BAA6 Secure'
1378160287.325132: eth1: BSS: Add new id 34 BSSID 44:94:fc:71:ad:ac SSID 'forverblessed'
1378160287.325162: eth1: BSS: Add new id 35 BSSID 94:44:52:64:c9:49 SSID 'Belkin.3949'
1378160287.325180: eth1: BSS: Add new id 36 BSSID ec:1a:59:2a:62:94 SSID 'belkin.294'
1378160287.325197: eth1: BSS: Add new id 37 BSSID 10:60:4b:e9:9e:f9 SSID 'HP-Print-F9-Deskjet 3510 series'
1378160287.325226: BSS: last_scan_res_used=30/64 last_scan_full=0
1378160287.325254: eth1: New scan results available
1378160287.325322: WPS: AP 44:94:fc:71:ad:ac type 0 added
1378160287.325340: WPS: AP 94:44:52:64:c9:49 type 0 added
1378160287.325352: WPS: AP ec:1a:59:2a:62:94 type 0 added
1378160287.325364: WPS: AP[0] 20:aa:4b:2c:18:f4 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325374: WPS: AP[1] 30:46:9a:64:83:de type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325384: WPS: AP[2] 20:4e:7f:47:a7:aa type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325393: WPS: AP[3] ec:1a:59:3e:96:8c type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325403: WPS: AP[4] 20:4e:7f:46:80:b0 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325412: WPS: AP[5] ec:1a:59:9a:5a:28 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325421: WPS: AP[6] 58:6d:8f:75:0d:96 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325431: WPS: AP[7] 20:aa:4b:c2:13:f0 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325440: WPS: AP[8] ec:1a:59:a8:0e:99 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325449: WPS: AP[9] 08:86:3b:a2:8d:60 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325459: WPS: AP[10] 00:26:f2:f6:90:21 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325468: WPS: AP[11] 84:1b:5e:29:fe:5c type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325477: WPS: AP[12] 00:23:69:99:55:79 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325487: WPS: AP[13] 08:86:3b:4a:5e:68 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325496: WPS: AP[14] ec:1a:59:86:e6:3b type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325505: WPS: AP[15] 00:8e:f2:53:66:be type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325515: WPS: AP[16] 94:44:52:2f:8d:c3 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325524: WPS: AP[17] ec:1a:59:4a:a1:7d type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325534: WPS: AP[18] 84:1b:5e:04:3c:8e type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325543: WPS: AP[19] 30:46:9a:64:7c:db type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325553: WPS: AP[20] c8:3a:35:57:3a:98 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325562: WPS: AP[21] e0:91:f5:ca:b9:4c type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325572: WPS: AP[22] 44:94:fc:71:ad:ac type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325581: WPS: AP[23] 94:44:52:64:c9:49 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325591: WPS: AP[24] ec:1a:59:2a:62:94 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160287.325607: eth1: No suitable network found
1378160287.325617: eth1: Short-circuit new scan request since there are no enabled networks
1378160287.325627: eth1: State: INACTIVE -> INACTIVE
1378160287.325637: eth1: Checking for other virtual interfaces sharing same radio (phy0) in event_scan_results
1378160287.327677: RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
1378160287.327705: RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
1378160287.327745: nl80211: if_removed already cleared - ignore event
1378160350.834446: eth1: BSS: Remove id 14 BSSID 00:23:69:99:55:79 SSID 'BBLink' due to wpa_bss_flush_by_age
1378160350.834480: eth1: BSS: Remove id 18 BSSID 70:56:81:84:84:d1 SSID 'Peter-NC' due to wpa_bss_flush_by_age
1378160350.834494: eth1: BSS: Remove id 19 BSSID 00:8e:f2:53:66:be SSID 'NETGEAR36' due to wpa_bss_flush_by_age
1378160350.834508: eth1: BSS: Remove id 21 BSSID 94:44:52:2f:8d:c3 SSID 'Belkin_G_Wireless_2F8DC3' due to wpa_bss_flush_by_age
1378160350.834522: eth1: BSS: Remove id 22 BSSID 00:22:3f:65:ac:f0 SSID 'Perza' due to wpa_bss_flush_by_age
1378160350.834535: eth1: BSS: Remove id 23 BSSID ec:1a:59:4a:a1:7d SSID 'belkin.17d' due to wpa_bss_flush_by_age
1378160350.834548: eth1: BSS: Remove id 24 BSSID 84:1b:5e:04:3c:8e SSID 'kirat' due to wpa_bss_flush_by_age
1378160350.834561: eth1: BSS: Remove id 26 BSSID c8:3a:35:57:3a:98 SSID '420' due to wpa_bss_flush_by_age
1378160405.370624: nl80211: Event message available
1378160405.370662: nl80211: Scan trigger
1378160407.328598: nl80211: Event message available
1378160407.328640: nl80211: New scan results available
1378160407.328652: eth1: Event SCAN_RESULTS (3) received
1378160407.328714: nl80211: Associated on 2417 MHz
1378160407.328721: nl80211: Associated with 20:aa:4b:60:7a:e3
1378160407.328801: nl80211: Received scan results (33 BSSes)
1378160407.328820: nl80211: Scan results indicate BSS status with 20:aa:4b:60:7a:e3 as associated
1378160407.328826: nl80211: Local state (not associated) does not match with BSS state
1378160407.328875: eth1: BSS: Start scan result update 3
1378160407.328915: eth1: BSS: Add new id 38 BSSID 20:aa:4b:fa:f1:77 SSID 'Kaipoche'
1378160407.328928: eth1: BSS: Add new id 39 BSSID 08:86:3b:62:c6:c6 SSID 'belkin.6c6'
1378160407.328940: eth1: BSS: Add new id 40 BSSID 20:4e:7f:0a:6f:ba SSID 'CGD24GBF'
1378160407.328950: eth1: BSS: Add new id 41 BSSID 00:8e:f2:53:66:be SSID 'NETGEAR36'
1378160407.328960: eth1: BSS: Add new id 42 BSSID 00:23:69:99:55:79 SSID 'BBLink'
1378160407.328978: eth1: BSS: Add new id 43 BSSID 70:56:81:84:84:d1 SSID 'Peter-NC'
1378160407.328993: eth1: BSS: Add new id 44 BSSID 00:22:3f:65:ac:f0 SSID 'Perza'
1378160407.329008: eth1: BSS: Add new id 45 BSSID 68:7f:74:fa:0c:f0 SSID 'Donnie'
1378160407.329030: eth1: BSS: Add new id 46 BSSID ec:1a:59:85:49:1f SSID 'belkin.91c.guests'
1378160407.329040: BSS: last_scan_res_used=33/64 last_scan_full=0
1378160407.329060: eth1: New scan results available
1378160407.329097: WPS: AP 20:aa:4b:fa:f1:77 type 0 added
1378160407.329104: WPS: AP 08:86:3b:62:c6:c6 type 0 added
1378160407.329112: WPS: AP 20:4e:7f:0a:6f:ba type 0 added
1378160407.329125: WPS: AP 68:7f:74:fa:0c:f0 type 0 added
1378160407.329133: WPS: AP[0] 20:aa:4b:2c:18:f4 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329140: WPS: AP[1] 30:46:9a:64:83:de type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329146: WPS: AP[2] 20:4e:7f:47:a7:aa type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329151: WPS: AP[3] ec:1a:59:3e:96:8c type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329157: WPS: AP[4] 20:4e:7f:46:80:b0 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329163: WPS: AP[5] ec:1a:59:9a:5a:28 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329169: WPS: AP[6] 58:6d:8f:75:0d:96 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329175: WPS: AP[7] 20:aa:4b:c2:13:f0 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329180: WPS: AP[8] ec:1a:59:a8:0e:99 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329187: WPS: AP[9] 08:86:3b:a2:8d:60 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329193: WPS: AP[10] 00:26:f2:f6:90:21 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329198: WPS: AP[11] 84:1b:5e:29:fe:5c type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329204: WPS: AP[12] 00:23:69:99:55:79 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329210: WPS: AP[13] 08:86:3b:4a:5e:68 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329216: WPS: AP[14] ec:1a:59:86:e6:3b type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329222: WPS: AP[15] 00:8e:f2:53:66:be type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329227: WPS: AP[16] 94:44:52:2f:8d:c3 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329233: WPS: AP[17] ec:1a:59:4a:a1:7d type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329239: WPS: AP[18] 84:1b:5e:04:3c:8e type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329245: WPS: AP[19] 30:46:9a:64:7c:db type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329250: WPS: AP[20] c8:3a:35:57:3a:98 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329256: WPS: AP[21] e0:91:f5:ca:b9:4c type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329262: WPS: AP[22] 44:94:fc:71:ad:ac type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329268: WPS: AP[23] 94:44:52:64:c9:49 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329274: WPS: AP[24] ec:1a:59:2a:62:94 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329280: WPS: AP[25] 20:aa:4b:fa:f1:77 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329286: WPS: AP[26] 08:86:3b:62:c6:c6 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329291: WPS: AP[27] 20:4e:7f:0a:6f:ba type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329297: WPS: AP[28] 68:7f:74:fa:0c:f0 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
1378160407.329307: eth1: No suitable network found
1378160407.329314: eth1: Short-circuit new scan request since there are no enabled networks
1378160407.329320: eth1: State: INACTIVE -> INACTIVE
1378160407.329326: eth1: Checking for other virtual interfaces sharing same radio (phy0) in event_scan_results
1378160407.331353: RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
1378160407.331374: RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
1378160407.331402: nl80211: if_removed already cleared - ignore event
1378160470.913526: eth1: BSS: Remove id 8 BSSID 00:17:3f:67:4d:9c SSID 'Magnitude' due to wpa_bss_flush_by_age
1378160470.913562: eth1: BSS: Remove id 12 BSSID 00:26:f2:f6:90:21 SSID 'Madimatt' due to wpa_bss_flush_by_age
1378160470.913577: eth1: BSS: Remove id 13 BSSID 84:1b:5e:29:fe:5c SSID 'JOHNRO' due to wpa_bss_flush_by_age
1378160470.913591: eth1: BSS: Remove id 20 BSSID 90:72:40:0e:1e:72 SSID 'Trish's Wi-Fi Network' due to wpa_bss_flush_by_age
1378160470.913605: eth1: BSS: Remove id 37 BSSID 10:60:4b:e9:9e:f9 SSID 'HP-Print-F9-Deskjet 3510 series' due to wpa_bss_flush_by_age
1378160470.913619: eth1: BSS: Remove id 29 BSSID e0:91:f5:ca:b9:4c SSID 'Diamond1' due to wpa_bss_flush_by_age


^ permalink raw reply

* [PATCH 1/4] initvals: Add channel 14 initvals for AR9565
From: Sujith Manoharan @ 2013-09-03  4:58 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linux-wireless

From: Sujith Manoharan <c_manoha@qca.qualcomm.com>

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
---
 tools/initvals/ar9565_1p0_initvals.h | 7 +++++++
 tools/initvals/checksums.txt         | 1 +
 tools/initvals/initvals.c            | 1 +
 3 files changed, 9 insertions(+)

diff --git a/tools/initvals/ar9565_1p0_initvals.h b/tools/initvals/ar9565_1p0_initvals.h
index 03ecc07..a8c757b 100644
--- a/tools/initvals/ar9565_1p0_initvals.h
+++ b/tools/initvals/ar9565_1p0_initvals.h
@@ -1231,4 +1231,11 @@ static const u32 ar9565_1p0_modes_high_power_tx_gain_table[][5] = {
 	{0x00016054, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
 };
 
+static const u32 ar9565_1p0_baseband_core_txfir_coeff_japan_2484[][2] = {
+	/* Addr      allmodes  */
+	{0x0000a398, 0x00000000},
+	{0x0000a39c, 0x6f7f0301},
+	{0x0000a3a0, 0xca9228ee},
+};
+
 #endif /* INITVALS_9565_1P0_H */
diff --git a/tools/initvals/checksums.txt b/tools/initvals/checksums.txt
index e39c382..9fd46a4 100644
--- a/tools/initvals/checksums.txt
+++ b/tools/initvals/checksums.txt
@@ -234,6 +234,7 @@ a3173672141a2ac797e660228d41a609f9ab2c4c        ar9565_1p0_pciephy_clkreq_disabl
 4bf703cdebf0bfb9ad867cb53b79d6c3957b6f91        ar9565_1p0_modes_low_ob_db_tx_gain_table
 e1be4dc91b540109b236b6b4002a9108ad3a01de        ar9565_1p0_modes_high_ob_db_tx_gain_table
 19ed468cdcc0c0be512a64d55f40c609e6d75720        ar9565_1p0_modes_high_power_tx_gain_table
+dfaefa89122b4b769bfcf93b4bd9569f2b0ee961        ar9565_1p0_baseband_core_txfir_coeff_japan_2484
 87e0ecae5df96673e22bc448b17d813510964de8        ar9580_1p0_modes_fast_clock
 6b0fb5b3698c99f42a885c8e982ae436363f1865        ar9580_1p0_radio_postamble
 5b81bf27a30c826cfde3e8f6746473e949cb41ef        ar9580_1p0_baseband_core
diff --git a/tools/initvals/initvals.c b/tools/initvals/initvals.c
index a1647e3..41e8051 100644
--- a/tools/initvals/initvals.c
+++ b/tools/initvals/initvals.c
@@ -982,6 +982,7 @@ static void ar9565_1p0_hw_print_initvals(bool check)
 	INI_PRINT(ar9565_1p0_modes_low_ob_db_tx_gain_table);
 	INI_PRINT(ar9565_1p0_modes_high_ob_db_tx_gain_table);
 	INI_PRINT(ar9565_1p0_modes_high_power_tx_gain_table);
+	INI_PRINT(ar9565_1p0_baseband_core_txfir_coeff_japan_2484);
 }
 
 #define FAM(_name, _def, _ver, _print) {	\
-- 
1.8.4


^ permalink raw reply related

* [PATCH 2/4] initvals: Remove duplicate mapping for AR9485 arrays
From: Sujith Manoharan @ 2013-09-03  4:58 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linux-wireless
In-Reply-To: <1378184318-1169-1-git-send-email-sujith@msujith.org>

From: Sujith Manoharan <c_manoha@qca.qualcomm.com>

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
---
 tools/initvals/ar9485_initvals.h | 115 +++++++++++++++++++++++++++++++++++++--
 tools/initvals/initvals.c        |  18 ++----
 2 files changed, 116 insertions(+), 17 deletions(-)

diff --git a/tools/initvals/ar9485_initvals.h b/tools/initvals/ar9485_initvals.h
index a3710f3..5b5ab76 100644
--- a/tools/initvals/ar9485_initvals.h
+++ b/tools/initvals/ar9485_initvals.h
@@ -20,7 +20,17 @@
 
 /* AR9485 1.1 */
 
-#define ar9485_1_1_mac_postamble ar9300_2p2_mac_postamble
+static const u32 ar9485_1_1_mac_postamble[][5] = {
+	/* Addr      5G_HT20     5G_HT40     2G_HT40     2G_HT20   */
+	{0x00001030, 0x00000230, 0x00000460, 0x000002c0, 0x00000160},
+	{0x00001070, 0x00000168, 0x000002d0, 0x00000318, 0x0000018c},
+	{0x000010b0, 0x00000e60, 0x00001cc0, 0x00007c70, 0x00003e38},
+	{0x00008014, 0x03e803e8, 0x07d007d0, 0x10801600, 0x08400b00},
+	{0x0000801c, 0x128d8027, 0x128d804f, 0x12e00057, 0x12e0002b},
+	{0x00008120, 0x08f04800, 0x08f04800, 0x08f04810, 0x08f04810},
+	{0x000081d0, 0x00003210, 0x00003210, 0x0000320a, 0x0000320a},
+	{0x00008318, 0x00003e80, 0x00007d00, 0x00006880, 0x00003440},
+};
 
 static const u32 ar9485_1_1_pcie_phy_pll_on_clkreq_disable_L1[][2] = {
 	/* Addr      allmodes  */
@@ -448,7 +458,99 @@ static const u32 ar9485Modes_low_ob_db_tx_gain_1_1[][5] = {
 	{0x00016048, 0x6c924260, 0x6c924260, 0x6c924260, 0x6c924260},
 };
 
-#define ar9485_modes_lowest_ob_db_tx_gain_1_1 ar9485Modes_low_ob_db_tx_gain_1_1
+static const u32 ar9485_modes_lowest_ob_db_tx_gain_1_1[][5] = {
+	/* Addr      5G_HT20     5G_HT40     2G_HT40     2G_HT20   */
+	{0x000098bc, 0x00000002, 0x00000002, 0x00000002, 0x00000002},
+	{0x0000a2d8, 0xf999a83a, 0xf999a83a, 0x7999a83a, 0x7999a83a},
+	{0x0000a2dc, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
+	{0x0000a2e0, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
+	{0x0000a2e4, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
+	{0x0000a2e8, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
+	{0x0000a410, 0x000050d9, 0x000050d9, 0x000050d8, 0x000050d8},
+	{0x0000a458, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a500, 0x00022200, 0x00022200, 0x00000000, 0x00000000},
+	{0x0000a504, 0x05062002, 0x05062002, 0x04000002, 0x04000002},
+	{0x0000a508, 0x0c002e00, 0x0c002e00, 0x08000004, 0x08000004},
+	{0x0000a50c, 0x11062202, 0x11062202, 0x0d000200, 0x0d000200},
+	{0x0000a510, 0x17022e00, 0x17022e00, 0x11000202, 0x11000202},
+	{0x0000a514, 0x1d000ec2, 0x1d000ec2, 0x15000400, 0x15000400},
+	{0x0000a518, 0x25020ec0, 0x25020ec0, 0x19000402, 0x19000402},
+	{0x0000a51c, 0x2b020ec3, 0x2b020ec3, 0x1d000404, 0x1d000404},
+	{0x0000a520, 0x2f001f04, 0x2f001f04, 0x21000603, 0x21000603},
+	{0x0000a524, 0x35001fc4, 0x35001fc4, 0x25000605, 0x25000605},
+	{0x0000a528, 0x3c022f04, 0x3c022f04, 0x2a000a03, 0x2a000a03},
+	{0x0000a52c, 0x41023e85, 0x41023e85, 0x2c000a04, 0x2c000a04},
+	{0x0000a530, 0x48023ec6, 0x48023ec6, 0x34000e20, 0x34000e20},
+	{0x0000a534, 0x4d023f01, 0x4d023f01, 0x35000e21, 0x35000e21},
+	{0x0000a538, 0x53023f4b, 0x53023f4b, 0x43000e62, 0x43000e62},
+	{0x0000a53c, 0x5a027f09, 0x5a027f09, 0x45000e63, 0x45000e63},
+	{0x0000a540, 0x5f027fc9, 0x5f027fc9, 0x49000e65, 0x49000e65},
+	{0x0000a544, 0x6502feca, 0x6502feca, 0x4b000e66, 0x4b000e66},
+	{0x0000a548, 0x6b02ff4a, 0x6b02ff4a, 0x4d001645, 0x4d001645},
+	{0x0000a54c, 0x7203feca, 0x7203feca, 0x51001865, 0x51001865},
+	{0x0000a550, 0x7703ff0b, 0x7703ff0b, 0x55001a86, 0x55001a86},
+	{0x0000a554, 0x7d06ffcb, 0x7d06ffcb, 0x57001ce9, 0x57001ce9},
+	{0x0000a558, 0x8407ff0b, 0x8407ff0b, 0x5a001ceb, 0x5a001ceb},
+	{0x0000a55c, 0x8907ffcb, 0x8907ffcb, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a560, 0x900fff0b, 0x900fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a564, 0x960fffcb, 0x960fffcb, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a580, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a584, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a588, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a58c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a590, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a594, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a598, 0x00000000, 0x00000000, 0x01404501, 0x01404501},
+	{0x0000a59c, 0x00000000, 0x00000000, 0x02808a02, 0x02808a02},
+	{0x0000a5a0, 0x00000000, 0x00000000, 0x02808a02, 0x02808a02},
+	{0x0000a5a4, 0x00000000, 0x00000000, 0x02808803, 0x02808803},
+	{0x0000a5a8, 0x00000000, 0x00000000, 0x04c14b04, 0x04c14b04},
+	{0x0000a5ac, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000a5b0, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000a5b4, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000a5b8, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000a5bc, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000b500, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b504, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b508, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b50c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b510, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b514, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b518, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b51c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b520, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b524, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b528, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b52c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b530, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b534, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b538, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b53c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b540, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b544, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b548, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b54c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b550, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b554, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b558, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b55c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b560, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b564, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b568, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b56c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b570, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b574, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b578, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b57c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x00016044, 0x05d6b2db, 0x05d6b2db, 0x05d6b2db, 0x05d6b2db},
+	{0x00016048, 0x6c924260, 0x6c924260, 0x6c924260, 0x6c924260},
+};
 
 static const u32 ar9485_1_1[][2] = {
 	/* Addr      allmodes  */
@@ -874,7 +976,7 @@ static const u32 ar9485_1_1_baseband_postamble[][5] = {
 	{0x0000a284, 0x00000000, 0x00000000, 0x000002a0, 0x000002a0},
 	{0x0000a288, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
 	{0x0000a28c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
-	{0x0000a2c4, 0x00158d18, 0x00158d18, 0x00158d18, 0x00158d18},
+	{0x0000a2c4, 0x00158d18, 0x00158d18, 0x00058d18, 0x00058d18},
 	{0x0000a2d0, 0x00071981, 0x00071981, 0x00071982, 0x00071982},
 	{0x0000a2d8, 0xf999a83a, 0xf999a83a, 0xf999a83a, 0xf999a83a},
 	{0x0000a358, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
@@ -1060,6 +1162,11 @@ static const u32 ar9485_1_1_mac_core[][2] = {
 	{0x000083d0, 0x000301ff},
 };
 
-#define ar9485_1_1_baseband_core_txfir_coeff_japan_2484 ar9462_2p0_baseband_core_txfir_coeff_japan_2484
+static const u32 ar9485_1_1_baseband_core_txfir_coeff_japan_2484[][2] = {
+	/* Addr      allmodes  */
+	{0x0000a398, 0x00000000},
+	{0x0000a39c, 0x6f7f0301},
+	{0x0000a3a0, 0xca9228ee},
+};
 
 #endif /* INITVALS_9485_H */
diff --git a/tools/initvals/initvals.c b/tools/initvals/initvals.c
index 41e8051..d1b5f16 100644
--- a/tools/initvals/initvals.c
+++ b/tools/initvals/initvals.c
@@ -828,19 +828,13 @@ static void ar9340_hw_print_initvals(bool check)
 
 static void ar9485_hw_print_initvals(bool check)
 {
-	INI_PRINT_DUP(ar9485_1_1_mac_postamble,
-		      ar9300_2p2_mac_postamble);
+	INI_PRINT(ar9485_1_1_mac_postamble);
 	INI_PRINT(ar9485_1_1_pcie_phy_pll_on_clkreq_disable_L1);
 	INI_PRINT(ar9485Common_wo_xlna_rx_gain_1_1);
-
 	INI_PRINT(ar9485Modes_high_power_tx_gain_1_1);
-	INI_PRINT_DUP(ar9485Modes_high_ob_db_tx_gain_1_1,
-		      ar9485Modes_high_power_tx_gain_1_1);
-	INI_PRINT_DUP(ar9485Modes_low_ob_db_tx_gain_1_1,
-		      ar9485Modes_high_ob_db_tx_gain_1_1);
-	INI_PRINT_DUP(ar9485_modes_lowest_ob_db_tx_gain_1_1,
-		      ar9485Modes_low_ob_db_tx_gain_1_1);
-
+	INI_PRINT(ar9485Modes_high_ob_db_tx_gain_1_1);
+	INI_PRINT(ar9485Modes_low_ob_db_tx_gain_1_1);
+	INI_PRINT(ar9485_modes_lowest_ob_db_tx_gain_1_1);
 	INI_PRINT(ar9485_1_1);
 	INI_PRINT(ar9485_1_1_radio_core);
 	INI_PRINT(ar9485_1_1_baseband_core);
@@ -853,9 +847,7 @@ static void ar9485_hw_print_initvals(bool check)
 	INI_PRINT(ar9485_1_1_pcie_phy_clkreq_disable_L1);
 	INI_PRINT(ar9485_1_1_radio_postamble);
 	INI_PRINT(ar9485_1_1_mac_core);
-
-	INI_PRINT_DUP(ar9485_1_1_baseband_core_txfir_coeff_japan_2484,
-		      ar9462_2p0_baseband_core_txfir_coeff_japan_2484);
+	INI_PRINT(ar9485_1_1_baseband_core_txfir_coeff_japan_2484);
 }
 
 static void ar955x_1p0_hw_print_initvals(bool check)
-- 
1.8.4


^ permalink raw reply related

* [PATCH 3/4] initvals: Add missing initval arrays for AR9485
From: Sujith Manoharan @ 2013-09-03  4:58 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linux-wireless
In-Reply-To: <1378184318-1169-1-git-send-email-sujith@msujith.org>

From: Sujith Manoharan <c_manoha@qca.qualcomm.com>

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
---
 tools/initvals/ar9485_initvals.h | 188 +++++++++++++++++++++++++++++++++++++++
 tools/initvals/initvals.c        |   4 +
 2 files changed, 192 insertions(+)

diff --git a/tools/initvals/ar9485_initvals.h b/tools/initvals/ar9485_initvals.h
index 5b5ab76..4b37ced 100644
--- a/tools/initvals/ar9485_initvals.h
+++ b/tools/initvals/ar9485_initvals.h
@@ -270,6 +270,100 @@ static const u32 ar9485Modes_high_power_tx_gain_1_1[][5] = {
 	{0x00016048, 0x6c924260, 0x6c924260, 0x6c924260, 0x6c924260},
 };
 
+static const u32 ar9485Modes_green_ob_db_tx_gain_1_1[][5] = {
+	/* Addr      5G_HT20     5G_HT40     2G_HT40     2G_HT20   */
+	{0x000098bc, 0x00000003, 0x00000003, 0x00000003, 0x00000003},
+	{0x0000a2d8, 0xf999a83a, 0xf999a83a, 0x7999a83a, 0x7999a83a},
+	{0x0000a2dc, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
+	{0x0000a2e0, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
+	{0x0000a2e4, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
+	{0x0000a2e8, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
+	{0x0000a410, 0x000050d9, 0x000050d9, 0x000050d8, 0x000050d8},
+	{0x0000a458, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
+	{0x0000a500, 0x00022200, 0x00022200, 0x00000006, 0x00000006},
+	{0x0000a504, 0x05062002, 0x05062002, 0x03000201, 0x03000201},
+	{0x0000a508, 0x0c002e00, 0x0c002e00, 0x06000203, 0x06000203},
+	{0x0000a50c, 0x11062202, 0x11062202, 0x0a000401, 0x0a000401},
+	{0x0000a510, 0x17022e00, 0x17022e00, 0x0e000403, 0x0e000403},
+	{0x0000a514, 0x1d000ec2, 0x1d000ec2, 0x12000405, 0x12000405},
+	{0x0000a518, 0x25020ec0, 0x25020ec0, 0x15000604, 0x15000604},
+	{0x0000a51c, 0x2b020ec3, 0x2b020ec3, 0x18000605, 0x18000605},
+	{0x0000a520, 0x2f001f04, 0x2f001f04, 0x1c000a04, 0x1c000a04},
+	{0x0000a524, 0x35001fc4, 0x35001fc4, 0x21000a06, 0x21000a06},
+	{0x0000a528, 0x3c022f04, 0x3c022f04, 0x29000a24, 0x29000a24},
+	{0x0000a52c, 0x41023e85, 0x41023e85, 0x2f000e21, 0x2f000e21},
+	{0x0000a530, 0x48023ec6, 0x48023ec6, 0x31000e20, 0x31000e20},
+	{0x0000a534, 0x4d023f01, 0x4d023f01, 0x33000e20, 0x33000e20},
+	{0x0000a538, 0x53023f4b, 0x53023f4b, 0x43000e62, 0x43000e62},
+	{0x0000a53c, 0x5a027f09, 0x5a027f09, 0x45000e63, 0x45000e63},
+	{0x0000a540, 0x5f027fc9, 0x5f027fc9, 0x49000e65, 0x49000e65},
+	{0x0000a544, 0x6502feca, 0x6502feca, 0x4b000e66, 0x4b000e66},
+	{0x0000a548, 0x6b02ff4a, 0x6b02ff4a, 0x4d001645, 0x4d001645},
+	{0x0000a54c, 0x7203feca, 0x7203feca, 0x51001865, 0x51001865},
+	{0x0000a550, 0x7703ff0b, 0x7703ff0b, 0x55001a86, 0x55001a86},
+	{0x0000a554, 0x7d06ffcb, 0x7d06ffcb, 0x57001ce9, 0x57001ce9},
+	{0x0000a558, 0x8407ff0b, 0x8407ff0b, 0x5a001ceb, 0x5a001ceb},
+	{0x0000a55c, 0x8907ffcb, 0x8907ffcb, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a560, 0x900fff0b, 0x900fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a564, 0x960fffcb, 0x960fffcb, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a580, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a584, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a588, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a58c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a590, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a594, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a598, 0x00000000, 0x00000000, 0x01404501, 0x01404501},
+	{0x0000a59c, 0x00000000, 0x00000000, 0x02808a02, 0x02808a02},
+	{0x0000a5a0, 0x00000000, 0x00000000, 0x02808a02, 0x02808a02},
+	{0x0000a5a4, 0x00000000, 0x00000000, 0x02808803, 0x02808803},
+	{0x0000a5a8, 0x00000000, 0x00000000, 0x04c14b04, 0x04c14b04},
+	{0x0000a5ac, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000a5b0, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000a5b4, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000a5b8, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000a5bc, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000b500, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b504, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b508, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b50c, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b510, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b514, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b518, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b51c, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b520, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b524, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b528, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b52c, 0x0000002a, 0x0000002a, 0x0000002a, 0x0000002a},
+	{0x0000b530, 0x0000003a, 0x0000003a, 0x0000003a, 0x0000003a},
+	{0x0000b534, 0x0000004a, 0x0000004a, 0x0000004a, 0x0000004a},
+	{0x0000b538, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b53c, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b540, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b544, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b548, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b54c, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b550, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b554, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b558, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b55c, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b560, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b564, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b568, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b56c, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b570, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b574, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b578, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b57c, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x00016044, 0x05d6b2db, 0x05d6b2db, 0x05d6b2db, 0x05d6b2db},
+	{0x00016048, 0x6c924260, 0x6c924260, 0x6c924260, 0x6c924260},
+};
+
 static const u32 ar9485Modes_high_ob_db_tx_gain_1_1[][5] = {
 	/* Addr      5G_HT20     5G_HT40     2G_HT40     2G_HT20   */
 	{0x000098bc, 0x00000002, 0x00000002, 0x00000002, 0x00000002},
@@ -552,6 +646,100 @@ static const u32 ar9485_modes_lowest_ob_db_tx_gain_1_1[][5] = {
 	{0x00016048, 0x6c924260, 0x6c924260, 0x6c924260, 0x6c924260},
 };
 
+static const u32 ar9485Modes_green_spur_ob_db_tx_gain_1_1[][5] = {
+	/* Addr      5G_HT20     5G_HT40     2G_HT40     2G_HT20   */
+	{0x000098bc, 0x00000003, 0x00000003, 0x00000003, 0x00000003},
+	{0x0000a2d8, 0xf999a83a, 0xf999a83a, 0x7999a83a, 0x7999a83a},
+	{0x0000a2dc, 0x00000000, 0x00000000, 0xffad452a, 0xffad452a},
+	{0x0000a2e0, 0x00000000, 0x00000000, 0xffc98634, 0xffc98634},
+	{0x0000a2e4, 0x00000000, 0x00000000, 0xfff60780, 0xfff60780},
+	{0x0000a2e8, 0x00000000, 0x00000000, 0xfffff800, 0xfffff800},
+	{0x0000a410, 0x000050d9, 0x000050d9, 0x000050d7, 0x000050d7},
+	{0x0000a458, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
+	{0x0000a500, 0x00022200, 0x00022200, 0x00000006, 0x00000006},
+	{0x0000a504, 0x05062002, 0x05062002, 0x03000201, 0x03000201},
+	{0x0000a508, 0x0c002e00, 0x0c002e00, 0x07000203, 0x07000203},
+	{0x0000a50c, 0x11062202, 0x11062202, 0x0a000401, 0x0a000401},
+	{0x0000a510, 0x17022e00, 0x17022e00, 0x0e000403, 0x0e000403},
+	{0x0000a514, 0x1d000ec2, 0x1d000ec2, 0x12000405, 0x12000405},
+	{0x0000a518, 0x25020ec0, 0x25020ec0, 0x14000406, 0x14000406},
+	{0x0000a51c, 0x2b020ec3, 0x2b020ec3, 0x1800040a, 0x1800040a},
+	{0x0000a520, 0x2f001f04, 0x2f001f04, 0x1c000460, 0x1c000460},
+	{0x0000a524, 0x35001fc4, 0x35001fc4, 0x22000463, 0x22000463},
+	{0x0000a528, 0x3c022f04, 0x3c022f04, 0x26000465, 0x26000465},
+	{0x0000a52c, 0x41023e85, 0x41023e85, 0x2e0006e0, 0x2e0006e0},
+	{0x0000a530, 0x48023ec6, 0x48023ec6, 0x310006e0, 0x310006e0},
+	{0x0000a534, 0x4d023f01, 0x4d023f01, 0x330006e0, 0x330006e0},
+	{0x0000a538, 0x53023f4b, 0x53023f4b, 0x3e0008e3, 0x3e0008e3},
+	{0x0000a53c, 0x5a027f09, 0x5a027f09, 0x430008e6, 0x430008e6},
+	{0x0000a540, 0x5f027fc9, 0x5f027fc9, 0x4a0008ec, 0x4a0008ec},
+	{0x0000a544, 0x6502feca, 0x6502feca, 0x4e0008f1, 0x4e0008f1},
+	{0x0000a548, 0x6b02ff4a, 0x6b02ff4a, 0x520008f3, 0x520008f3},
+	{0x0000a54c, 0x7203feca, 0x7203feca, 0x54000eed, 0x54000eed},
+	{0x0000a550, 0x7703ff0b, 0x7703ff0b, 0x58000ef1, 0x58000ef1},
+	{0x0000a554, 0x7d06ffcb, 0x7d06ffcb, 0x5c000ef3, 0x5c000ef3},
+	{0x0000a558, 0x8407ff0b, 0x8407ff0b, 0x62000ef6, 0x62000ef6},
+	{0x0000a55c, 0x8907ffcb, 0x8907ffcb, 0x62000ef6, 0x62000ef6},
+	{0x0000a560, 0x900fff0b, 0x900fff0b, 0x62000ef6, 0x62000ef6},
+	{0x0000a564, 0x960fffcb, 0x960fffcb, 0x62000ef6, 0x62000ef6},
+	{0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
+	{0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
+	{0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
+	{0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
+	{0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
+	{0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
+	{0x0000a580, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a584, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a588, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a58c, 0x00000000, 0x00000000, 0x01804000, 0x01804000},
+	{0x0000a590, 0x00000000, 0x00000000, 0x02808a02, 0x02808a02},
+	{0x0000a594, 0x00000000, 0x00000000, 0x0340ca02, 0x0340ca02},
+	{0x0000a598, 0x00000000, 0x00000000, 0x0340cd03, 0x0340cd03},
+	{0x0000a59c, 0x00000000, 0x00000000, 0x0340cd03, 0x0340cd03},
+	{0x0000a5a0, 0x00000000, 0x00000000, 0x06415304, 0x06415304},
+	{0x0000a5a4, 0x00000000, 0x00000000, 0x04c11905, 0x04c11905},
+	{0x0000a5a8, 0x00000000, 0x00000000, 0x06415905, 0x06415905},
+	{0x0000a5ac, 0x00000000, 0x00000000, 0x06415905, 0x06415905},
+	{0x0000a5b0, 0x00000000, 0x00000000, 0x06415905, 0x06415905},
+	{0x0000a5b4, 0x00000000, 0x00000000, 0x06415905, 0x06415905},
+	{0x0000a5b8, 0x00000000, 0x00000000, 0x06415905, 0x06415905},
+	{0x0000a5bc, 0x00000000, 0x00000000, 0x06415905, 0x06415905},
+	{0x0000b500, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b504, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b508, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b50c, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b510, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b514, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b518, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b51c, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b520, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b524, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b528, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
+	{0x0000b52c, 0x0000002a, 0x0000002a, 0x0000002a, 0x0000002a},
+	{0x0000b530, 0x0000003a, 0x0000003a, 0x0000003a, 0x0000003a},
+	{0x0000b534, 0x0000004a, 0x0000004a, 0x0000004a, 0x0000004a},
+	{0x0000b538, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b53c, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b540, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b544, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b548, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b54c, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b550, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b554, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b558, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b55c, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b560, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b564, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b568, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b56c, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b570, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b574, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b578, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x0000b57c, 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b},
+	{0x00016044, 0x05d6b2db, 0x05d6b2db, 0x05d6b2db, 0x05d6b2db},
+	{0x00016048, 0x6c924260, 0x6c924260, 0x6c924260, 0x6c924260},
+};
+
 static const u32 ar9485_1_1[][2] = {
 	/* Addr      allmodes  */
 	{0x0000a580, 0x00000000},
diff --git a/tools/initvals/initvals.c b/tools/initvals/initvals.c
index d1b5f16..3cefca1 100644
--- a/tools/initvals/initvals.c
+++ b/tools/initvals/initvals.c
@@ -254,6 +254,8 @@ struct initval_family {
 #define ar9485_poseidon1_1_radio_postamble			ar9485_1_1_radio_postamble
 #define ar9485_poseidon1_1_mac_core				ar9485_1_1_mac_core
 #define ar9485_poseidon1_1_baseband_core_txfir_coeff_japan_2484 ar9485_1_1_baseband_core_txfir_coeff_japan_2484
+#define ar9485_modes_green_ob_db_tx_gain_poseidon1_1		ar9485Modes_green_ob_db_tx_gain_1_1
+#define ar9485_modes_green_spur_ob_db_tx_gain_poseidon1_1	ar9485Modes_green_spur_ob_db_tx_gain_1_1
 
 #include "ar9485_1_1.ini"
 
@@ -832,9 +834,11 @@ static void ar9485_hw_print_initvals(bool check)
 	INI_PRINT(ar9485_1_1_pcie_phy_pll_on_clkreq_disable_L1);
 	INI_PRINT(ar9485Common_wo_xlna_rx_gain_1_1);
 	INI_PRINT(ar9485Modes_high_power_tx_gain_1_1);
+	INI_PRINT(ar9485Modes_green_ob_db_tx_gain_1_1);
 	INI_PRINT(ar9485Modes_high_ob_db_tx_gain_1_1);
 	INI_PRINT(ar9485Modes_low_ob_db_tx_gain_1_1);
 	INI_PRINT(ar9485_modes_lowest_ob_db_tx_gain_1_1);
+	INI_PRINT(ar9485Modes_green_spur_ob_db_tx_gain_1_1);
 	INI_PRINT(ar9485_1_1);
 	INI_PRINT(ar9485_1_1_radio_core);
 	INI_PRINT(ar9485_1_1_baseband_core);
-- 
1.8.4


^ permalink raw reply related

* [PATCH 4/4] initvals: Update AR9485 1.1 initvals
From: Sujith Manoharan @ 2013-09-03  4:58 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linux-wireless
In-Reply-To: <1378184318-1169-1-git-send-email-sujith@msujith.org>

From: Sujith Manoharan <c_manoha@qca.qualcomm.com>

This fixes issues with ETSI/CCA compliance.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
---
 tools/initvals/ar9485_initvals.h | 61 ++++++++++++++++++++--------------------
 tools/initvals/checksums.txt     | 12 ++++----
 2 files changed, 38 insertions(+), 35 deletions(-)

diff --git a/tools/initvals/ar9485_initvals.h b/tools/initvals/ar9485_initvals.h
index 4b37ced..6f899c6 100644
--- a/tools/initvals/ar9485_initvals.h
+++ b/tools/initvals/ar9485_initvals.h
@@ -44,6 +44,7 @@ static const u32 ar9485Common_wo_xlna_rx_gain_1_1[][2] = {
 	{0x00009e00, 0x037216a0},
 	{0x00009e04, 0x00182020},
 	{0x00009e18, 0x00000000},
+	{0x00009e20, 0x000003a8},
 	{0x00009e2c, 0x00004121},
 	{0x00009e44, 0x02282324},
 	{0x0000a000, 0x00060005},
@@ -184,7 +185,7 @@ static const u32 ar9485Modes_high_power_tx_gain_1_1[][5] = {
 	{0x0000a2e0, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
 	{0x0000a2e4, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
 	{0x0000a2e8, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
-	{0x0000a410, 0x000050d9, 0x000050d9, 0x000050d8, 0x000050d8},
+	{0x0000a410, 0x000050d9, 0x000050d9, 0x000050da, 0x000050da},
 	{0x0000a458, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
 	{0x0000a500, 0x00022200, 0x00022200, 0x00000000, 0x00000000},
 	{0x0000a504, 0x05062002, 0x05062002, 0x04000002, 0x04000002},
@@ -210,14 +211,14 @@ static const u32 ar9485Modes_high_power_tx_gain_1_1[][5] = {
 	{0x0000a554, 0x7d06ffcb, 0x7d06ffcb, 0x57001ce9, 0x57001ce9},
 	{0x0000a558, 0x8407ff0b, 0x8407ff0b, 0x5a001ceb, 0x5a001ceb},
 	{0x0000a55c, 0x8907ffcb, 0x8907ffcb, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a560, 0x900fff0b, 0x900fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a564, 0x960fffcb, 0x960fffcb, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a560, 0x900fff0b, 0x900fff0b, 0x62001eee, 0x62001eee},
+	{0x0000a564, 0x960fffcb, 0x960fffcb, 0x66001ff6, 0x66001ff6},
+	{0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
 	{0x0000a580, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
 	{0x0000a584, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
 	{0x0000a588, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
@@ -372,7 +373,7 @@ static const u32 ar9485Modes_high_ob_db_tx_gain_1_1[][5] = {
 	{0x0000a2e0, 0x00000000, 0x00000000, 0xffc63a84, 0xffc63a84},
 	{0x0000a2e4, 0x00000000, 0x00000000, 0xfe0fc000, 0xfe0fc000},
 	{0x0000a2e8, 0x00000000, 0x00000000, 0xfff00000, 0xfff00000},
-	{0x0000a410, 0x000050d9, 0x000050d9, 0x000050d8, 0x000050d8},
+	{0x0000a410, 0x000050d9, 0x000050d9, 0x000050da, 0x000050da},
 	{0x0000a458, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
 	{0x0000a500, 0x00022200, 0x00022200, 0x00000000, 0x00000000},
 	{0x0000a504, 0x05062002, 0x05062002, 0x04000002, 0x04000002},
@@ -398,14 +399,14 @@ static const u32 ar9485Modes_high_ob_db_tx_gain_1_1[][5] = {
 	{0x0000a554, 0x7d06ffcb, 0x7d06ffcb, 0x57001ce9, 0x57001ce9},
 	{0x0000a558, 0x8407ff0b, 0x8407ff0b, 0x5a001ceb, 0x5a001ceb},
 	{0x0000a55c, 0x8907ffcb, 0x8907ffcb, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a560, 0x900fff0b, 0x900fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a564, 0x960fffcb, 0x960fffcb, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a560, 0x900fff0b, 0x900fff0b, 0x62001eee, 0x62001eee},
+	{0x0000a564, 0x960fffcb, 0x960fffcb, 0x66001ff6, 0x66001ff6},
+	{0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
 	{0x0000a580, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
 	{0x0000a584, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
 	{0x0000a588, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
@@ -654,7 +655,7 @@ static const u32 ar9485Modes_green_spur_ob_db_tx_gain_1_1[][5] = {
 	{0x0000a2e0, 0x00000000, 0x00000000, 0xffc98634, 0xffc98634},
 	{0x0000a2e4, 0x00000000, 0x00000000, 0xfff60780, 0xfff60780},
 	{0x0000a2e8, 0x00000000, 0x00000000, 0xfffff800, 0xfffff800},
-	{0x0000a410, 0x000050d9, 0x000050d9, 0x000050d7, 0x000050d7},
+	{0x0000a410, 0x000050d9, 0x000050d9, 0x000050d9, 0x000050d9},
 	{0x0000a458, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
 	{0x0000a500, 0x00022200, 0x00022200, 0x00000006, 0x00000006},
 	{0x0000a504, 0x05062002, 0x05062002, 0x03000201, 0x03000201},
@@ -679,15 +680,15 @@ static const u32 ar9485Modes_green_spur_ob_db_tx_gain_1_1[][5] = {
 	{0x0000a550, 0x7703ff0b, 0x7703ff0b, 0x58000ef1, 0x58000ef1},
 	{0x0000a554, 0x7d06ffcb, 0x7d06ffcb, 0x5c000ef3, 0x5c000ef3},
 	{0x0000a558, 0x8407ff0b, 0x8407ff0b, 0x62000ef6, 0x62000ef6},
-	{0x0000a55c, 0x8907ffcb, 0x8907ffcb, 0x62000ef6, 0x62000ef6},
-	{0x0000a560, 0x900fff0b, 0x900fff0b, 0x62000ef6, 0x62000ef6},
-	{0x0000a564, 0x960fffcb, 0x960fffcb, 0x62000ef6, 0x62000ef6},
-	{0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
-	{0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
-	{0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
-	{0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
-	{0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
-	{0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
+	{0x0000a55c, 0x8907ffcb, 0x8907ffcb, 0x66001ff0, 0x66001ff0},
+	{0x0000a560, 0x900fff0b, 0x900fff0b, 0x68001ff6, 0x68001ff6},
+	{0x0000a564, 0x960fffcb, 0x960fffcb, 0x68001ff6, 0x68001ff6},
+	{0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6},
+	{0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6},
+	{0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6},
+	{0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6},
+	{0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6},
+	{0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6},
 	{0x0000a580, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
 	{0x0000a584, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
 	{0x0000a588, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
@@ -967,6 +968,7 @@ static const u32 ar9485_common_rx_gain_1_1[][2] = {
 	{0x00009e00, 0x03721b20},
 	{0x00009e04, 0x00082020},
 	{0x00009e18, 0x0300501e},
+	{0x00009e20, 0x000003ba},
 	{0x00009e2c, 0x00002e21},
 	{0x00009e44, 0x02182324},
 	{0x0000a000, 0x00060005},
@@ -1145,7 +1147,6 @@ static const u32 ar9485_1_1_baseband_postamble[][5] = {
 	{0x00009e10, 0x7ec88d2e, 0x7ec88d2e, 0x7ec80d2e, 0x7ec80d2e},
 	{0x00009e14, 0x31395d53, 0x31396053, 0x312e6053, 0x312e5d53},
 	{0x00009e1c, 0x0001cf9c, 0x0001cf9c, 0x00021f9c, 0x00021f9c},
-	{0x00009e20, 0x000003b5, 0x000003b5, 0x000003ce, 0x000003ce},
 	{0x00009e3c, 0xcf946220, 0xcf946220, 0xcf946222, 0xcf946222},
 	{0x00009e48, 0x5030201a, 0x5030201a, 0x50302010, 0x50302010},
 	{0x00009fc8, 0x0003f000, 0x0003f000, 0x0001a000, 0x0001a000},
@@ -1164,7 +1165,7 @@ static const u32 ar9485_1_1_baseband_postamble[][5] = {
 	{0x0000a284, 0x00000000, 0x00000000, 0x000002a0, 0x000002a0},
 	{0x0000a288, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
 	{0x0000a28c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
-	{0x0000a2c4, 0x00158d18, 0x00158d18, 0x00058d18, 0x00058d18},
+	{0x0000a2c4, 0x00158d18, 0x00158d18, 0x00158d18, 0x00158d18},
 	{0x0000a2d0, 0x00071981, 0x00071981, 0x00071982, 0x00071982},
 	{0x0000a2d8, 0xf999a83a, 0xf999a83a, 0xf999a83a, 0xf999a83a},
 	{0x0000a358, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
diff --git a/tools/initvals/checksums.txt b/tools/initvals/checksums.txt
index 9fd46a4..beba14f 100644
--- a/tools/initvals/checksums.txt
+++ b/tools/initvals/checksums.txt
@@ -184,20 +184,22 @@ d9efd1c575ac43d60c310d717c59617a5323c111        ar9462_2p1_modes_fast_clock
 dfaefa89122b4b769bfcf93b4bd9569f2b0ee961        ar9462_2p1_baseband_core_txfir_coeff_japan_2484
 c8dc777b012068116cd5282aade8eb460f397d20        ar9485_1_1_mac_postamble
 5d20e4848b97566ad55e0e95458463d622ee5480        ar9485_1_1_pcie_phy_pll_on_clkreq_disable_L1
-d9a90632a00a7b417154173b947dfffdeab23e51        ar9485Common_wo_xlna_rx_gain_1_1
-88b0666758b93ccaa26d500f4a80fec368c6a4e2        ar9485Modes_high_power_tx_gain_1_1
-0ac7092cc0a74e2cd03a3cc8821d46fbc3d1b3f4        ar9485Modes_high_ob_db_tx_gain_1_1
+118caf7bf15a5e2815e901201660790d687b8e88        ar9485Common_wo_xlna_rx_gain_1_1
+4ab61ebe1630e1e520bd42eae923f01b29595097        ar9485Modes_high_power_tx_gain_1_1
+847e6743c552579a318d5e6e8bae695836332be8        ar9485Modes_green_ob_db_tx_gain_1_1
+a86889c4252ea3089ed0dc763e5f831941fc4fcc        ar9485Modes_high_ob_db_tx_gain_1_1
 88b0666758b93ccaa26d500f4a80fec368c6a4e2        ar9485Modes_low_ob_db_tx_gain_1_1
 88b0666758b93ccaa26d500f4a80fec368c6a4e2        ar9485_modes_lowest_ob_db_tx_gain_1_1
+01f3b7a52af2ae57b0dd6e86435f7fbfdb37ccd4        ar9485Modes_green_spur_ob_db_tx_gain_1_1
 5ca2c72bdaf75ac11c0f8ae8dae5bef32ffa3c3b        ar9485_1_1
 26e183ba89fcd047fa2c6e92549ed33772800bfb        ar9485_1_1_radio_core
 2cb731330486f7c5bc501693eb729531124d21a4        ar9485_1_1_baseband_core
-1d9e632b3fdcb2db52f95dd75ff2eac31fcac0d6        ar9485_common_rx_gain_1_1
+7479ef6332b0d923e8e7ddb888eb3a09aac7a8b4        ar9485_common_rx_gain_1_1
 13bec2462d608918bcc8a5d2600c750730663745        ar9485_1_1_pcie_phy_pll_on_clkreq_enable_L1
 b8bc19098aa0ac38cf74ca4747e28ce6bad14fa1        ar9485_1_1_pcie_phy_clkreq_enable_L1
 7e1adfdb0f6a6dbbbe901d8eb019a425edfa58a6        ar9485_1_1_soc_preamble
 f247bc63c9a632092b94d1af1526650753b77a60        ar9485_fast_clock_1_1_baseband_postamble
-f1b452dfb558a755d9004241c29b43abd3332359        ar9485_1_1_baseband_postamble
+5e45cc3ca32a1cde2ad90f65bb81d0872b8dc87d        ar9485_1_1_baseband_postamble
 c8016c349304ed85842783f04f01f40a0cf4468f        ar9485_1_1_pcie_phy_clkreq_disable_L1
 f5bb0f6a25e512b85039e8c49ebc6555ff27ac4d        ar9485_1_1_radio_postamble
 be2a6982ce450a3e03b1593199395599778297b0        ar9485_1_1_mac_core
-- 
1.8.4


^ permalink raw reply related

* [PATCH 2/3] ath9k: Add and use initvals for channel 14
From: Sujith Manoharan @ 2013-09-03  4:58 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless
In-Reply-To: <1378184337-1816-1-git-send-email-sujith@msujith.org>

From: Sujith Manoharan <c_manoha@qca.qualcomm.com>

This is missing for AR9565.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath9k/ar9003_hw.c           | 2 ++
 drivers/net/wireless/ath/ath9k/ar9565_1p0_initvals.h | 7 +++++++
 2 files changed, 9 insertions(+)

diff --git a/drivers/net/wireless/ath/ath9k/ar9003_hw.c b/drivers/net/wireless/ath/ath9k/ar9003_hw.c
index d40bdd2..b07f164 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_hw.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_hw.c
@@ -364,6 +364,8 @@ static void ar9003_hw_init_mode_regs(struct ath_hw *ah)
 
 		INIT_INI_ARRAY(&ah->iniModesFastClock,
 				ar9565_1p0_modes_fast_clock);
+		INIT_INI_ARRAY(&ah->iniCckfirJapan2484,
+			       ar9565_1p0_baseband_core_txfir_coeff_japan_2484);
 	} else {
 		/* mac */
 		INIT_INI_ARRAY(&ah->iniMac[ATH_INI_CORE],
diff --git a/drivers/net/wireless/ath/ath9k/ar9565_1p0_initvals.h b/drivers/net/wireless/ath/ath9k/ar9565_1p0_initvals.h
index 03ecc07..a8c757b 100644
--- a/drivers/net/wireless/ath/ath9k/ar9565_1p0_initvals.h
+++ b/drivers/net/wireless/ath/ath9k/ar9565_1p0_initvals.h
@@ -1231,4 +1231,11 @@ static const u32 ar9565_1p0_modes_high_power_tx_gain_table[][5] = {
 	{0x00016054, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
 };
 
+static const u32 ar9565_1p0_baseband_core_txfir_coeff_japan_2484[][2] = {
+	/* Addr      allmodes  */
+	{0x0000a398, 0x00000000},
+	{0x0000a39c, 0x6f7f0301},
+	{0x0000a3a0, 0xca9228ee},
+};
+
 #endif /* INITVALS_9565_1P0_H */
-- 
1.8.4


^ permalink raw reply related

* [PATCH 1/3] ath9k: Fix regulatory compliance for AR9462/AR9565
From: Sujith Manoharan @ 2013-09-03  4:58 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless

From: Sujith Manoharan <c_manoha@qca.qualcomm.com>

Adjust the CCA values based on the regulatory domain
present in the EEPROM.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath9k/ar9003_phy.h |  4 ++++
 drivers/net/wireless/ath/ath9k/hw.c         | 12 ++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.h b/drivers/net/wireless/ath/ath9k/ar9003_phy.h
index 6fd7523..fca6243 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_phy.h
+++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.h
@@ -343,8 +343,12 @@
 
 #define AR_PHY_CCA_NOM_VAL_9462_2GHZ          -127
 #define AR_PHY_CCA_MIN_GOOD_VAL_9462_2GHZ     -127
+#define AR_PHY_CCA_MAX_GOOD_VAL_9462_2GHZ     -60
+#define AR_PHY_CCA_MAX_GOOD_VAL_9462_FCC_2GHZ -95
 #define AR_PHY_CCA_NOM_VAL_9462_5GHZ          -127
 #define AR_PHY_CCA_MIN_GOOD_VAL_9462_5GHZ     -127
+#define AR_PHY_CCA_MAX_GOOD_VAL_9462_5GHZ     -60
+#define AR_PHY_CCA_MAX_GOOD_VAL_9462_FCC_5GHZ -100
 
 #define AR_PHY_CCA_NOM_VAL_9330_2GHZ          -118
 
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index ecc6ec4..260e0c6 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -549,6 +549,18 @@ static int ath9k_hw_post_init(struct ath_hw *ah)
 
 	ath9k_hw_ani_init(ah);
 
+	/*
+	 * EEPROM needs to be initialized before we do this.
+	 * This is required for regulatory compliance.
+	 */
+	if (AR_SREV_9462(ah) || AR_SREV_9565(ah)) {
+		u16 regdmn = ah->eep_ops->get_eeprom(ah, EEP_REG_0);
+		if ((regdmn & 0xF0) == CTL_FCC) {
+			ah->nf_2g.max = AR_PHY_CCA_MAX_GOOD_VAL_9462_FCC_2GHZ;
+			ah->nf_5g.max = AR_PHY_CCA_MAX_GOOD_VAL_9462_FCC_5GHZ;
+		}
+	}
+
 	return 0;
 }
 
-- 
1.8.4


^ permalink raw reply related

* [PATCH 3/3] ath9k: Update AR9485 1.1 initvals
From: Sujith Manoharan @ 2013-09-03  4:58 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless
In-Reply-To: <1378184337-1816-1-git-send-email-sujith@msujith.org>

From: Sujith Manoharan <c_manoha@qca.qualcomm.com>

* Remove duplicate array mappings.
* Fix ETSI CCA compliance.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath9k/ar9485_initvals.h | 218 +++++++++++++++++++----
 1 file changed, 184 insertions(+), 34 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/ar9485_initvals.h b/drivers/net/wireless/ath/ath9k/ar9485_initvals.h
index 88ff1d7..6f899c6 100644
--- a/drivers/net/wireless/ath/ath9k/ar9485_initvals.h
+++ b/drivers/net/wireless/ath/ath9k/ar9485_initvals.h
@@ -20,7 +20,17 @@
 
 /* AR9485 1.1 */
 
-#define ar9485_1_1_mac_postamble ar9300_2p2_mac_postamble
+static const u32 ar9485_1_1_mac_postamble[][5] = {
+	/* Addr      5G_HT20     5G_HT40     2G_HT40     2G_HT20   */
+	{0x00001030, 0x00000230, 0x00000460, 0x000002c0, 0x00000160},
+	{0x00001070, 0x00000168, 0x000002d0, 0x00000318, 0x0000018c},
+	{0x000010b0, 0x00000e60, 0x00001cc0, 0x00007c70, 0x00003e38},
+	{0x00008014, 0x03e803e8, 0x07d007d0, 0x10801600, 0x08400b00},
+	{0x0000801c, 0x128d8027, 0x128d804f, 0x12e00057, 0x12e0002b},
+	{0x00008120, 0x08f04800, 0x08f04800, 0x08f04810, 0x08f04810},
+	{0x000081d0, 0x00003210, 0x00003210, 0x0000320a, 0x0000320a},
+	{0x00008318, 0x00003e80, 0x00007d00, 0x00006880, 0x00003440},
+};
 
 static const u32 ar9485_1_1_pcie_phy_pll_on_clkreq_disable_L1[][2] = {
 	/* Addr      allmodes  */
@@ -34,6 +44,7 @@ static const u32 ar9485Common_wo_xlna_rx_gain_1_1[][2] = {
 	{0x00009e00, 0x037216a0},
 	{0x00009e04, 0x00182020},
 	{0x00009e18, 0x00000000},
+	{0x00009e20, 0x000003a8},
 	{0x00009e2c, 0x00004121},
 	{0x00009e44, 0x02282324},
 	{0x0000a000, 0x00060005},
@@ -174,7 +185,7 @@ static const u32 ar9485Modes_high_power_tx_gain_1_1[][5] = {
 	{0x0000a2e0, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
 	{0x0000a2e4, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
 	{0x0000a2e8, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
-	{0x0000a410, 0x000050d9, 0x000050d9, 0x000050d8, 0x000050d8},
+	{0x0000a410, 0x000050d9, 0x000050d9, 0x000050da, 0x000050da},
 	{0x0000a458, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
 	{0x0000a500, 0x00022200, 0x00022200, 0x00000000, 0x00000000},
 	{0x0000a504, 0x05062002, 0x05062002, 0x04000002, 0x04000002},
@@ -200,14 +211,14 @@ static const u32 ar9485Modes_high_power_tx_gain_1_1[][5] = {
 	{0x0000a554, 0x7d06ffcb, 0x7d06ffcb, 0x57001ce9, 0x57001ce9},
 	{0x0000a558, 0x8407ff0b, 0x8407ff0b, 0x5a001ceb, 0x5a001ceb},
 	{0x0000a55c, 0x8907ffcb, 0x8907ffcb, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a560, 0x900fff0b, 0x900fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a564, 0x960fffcb, 0x960fffcb, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
-	{0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a560, 0x900fff0b, 0x900fff0b, 0x62001eee, 0x62001eee},
+	{0x0000a564, 0x960fffcb, 0x960fffcb, 0x66001ff6, 0x66001ff6},
+	{0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
 	{0x0000a580, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
 	{0x0000a584, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
 	{0x0000a588, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
@@ -263,6 +274,11 @@ static const u32 ar9485Modes_high_power_tx_gain_1_1[][5] = {
 static const u32 ar9485Modes_green_ob_db_tx_gain_1_1[][5] = {
 	/* Addr      5G_HT20     5G_HT40     2G_HT40     2G_HT20   */
 	{0x000098bc, 0x00000003, 0x00000003, 0x00000003, 0x00000003},
+	{0x0000a2d8, 0xf999a83a, 0xf999a83a, 0x7999a83a, 0x7999a83a},
+	{0x0000a2dc, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
+	{0x0000a2e0, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
+	{0x0000a2e4, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
+	{0x0000a2e8, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
 	{0x0000a410, 0x000050d9, 0x000050d9, 0x000050d8, 0x000050d8},
 	{0x0000a458, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
 	{0x0000a500, 0x00022200, 0x00022200, 0x00000006, 0x00000006},
@@ -297,6 +313,22 @@ static const u32 ar9485Modes_green_ob_db_tx_gain_1_1[][5] = {
 	{0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
 	{0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
 	{0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a580, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a584, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a588, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a58c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a590, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a594, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a598, 0x00000000, 0x00000000, 0x01404501, 0x01404501},
+	{0x0000a59c, 0x00000000, 0x00000000, 0x02808a02, 0x02808a02},
+	{0x0000a5a0, 0x00000000, 0x00000000, 0x02808a02, 0x02808a02},
+	{0x0000a5a4, 0x00000000, 0x00000000, 0x02808803, 0x02808803},
+	{0x0000a5a8, 0x00000000, 0x00000000, 0x04c14b04, 0x04c14b04},
+	{0x0000a5ac, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000a5b0, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000a5b4, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000a5b8, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000a5bc, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
 	{0x0000b500, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
 	{0x0000b504, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
 	{0x0000b508, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
@@ -341,6 +373,100 @@ static const u32 ar9485Modes_high_ob_db_tx_gain_1_1[][5] = {
 	{0x0000a2e0, 0x00000000, 0x00000000, 0xffc63a84, 0xffc63a84},
 	{0x0000a2e4, 0x00000000, 0x00000000, 0xfe0fc000, 0xfe0fc000},
 	{0x0000a2e8, 0x00000000, 0x00000000, 0xfff00000, 0xfff00000},
+	{0x0000a410, 0x000050d9, 0x000050d9, 0x000050da, 0x000050da},
+	{0x0000a458, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a500, 0x00022200, 0x00022200, 0x00000000, 0x00000000},
+	{0x0000a504, 0x05062002, 0x05062002, 0x04000002, 0x04000002},
+	{0x0000a508, 0x0c002e00, 0x0c002e00, 0x08000004, 0x08000004},
+	{0x0000a50c, 0x11062202, 0x11062202, 0x0d000200, 0x0d000200},
+	{0x0000a510, 0x17022e00, 0x17022e00, 0x11000202, 0x11000202},
+	{0x0000a514, 0x1d000ec2, 0x1d000ec2, 0x15000400, 0x15000400},
+	{0x0000a518, 0x25020ec0, 0x25020ec0, 0x19000402, 0x19000402},
+	{0x0000a51c, 0x2b020ec3, 0x2b020ec3, 0x1d000404, 0x1d000404},
+	{0x0000a520, 0x2f001f04, 0x2f001f04, 0x21000603, 0x21000603},
+	{0x0000a524, 0x35001fc4, 0x35001fc4, 0x25000605, 0x25000605},
+	{0x0000a528, 0x3c022f04, 0x3c022f04, 0x2a000a03, 0x2a000a03},
+	{0x0000a52c, 0x41023e85, 0x41023e85, 0x2c000a04, 0x2c000a04},
+	{0x0000a530, 0x48023ec6, 0x48023ec6, 0x34000e20, 0x34000e20},
+	{0x0000a534, 0x4d023f01, 0x4d023f01, 0x35000e21, 0x35000e21},
+	{0x0000a538, 0x53023f4b, 0x53023f4b, 0x43000e62, 0x43000e62},
+	{0x0000a53c, 0x5a027f09, 0x5a027f09, 0x45000e63, 0x45000e63},
+	{0x0000a540, 0x5f027fc9, 0x5f027fc9, 0x49000e65, 0x49000e65},
+	{0x0000a544, 0x6502feca, 0x6502feca, 0x4b000e66, 0x4b000e66},
+	{0x0000a548, 0x6b02ff4a, 0x6b02ff4a, 0x4d001645, 0x4d001645},
+	{0x0000a54c, 0x7203feca, 0x7203feca, 0x51001865, 0x51001865},
+	{0x0000a550, 0x7703ff0b, 0x7703ff0b, 0x55001a86, 0x55001a86},
+	{0x0000a554, 0x7d06ffcb, 0x7d06ffcb, 0x57001ce9, 0x57001ce9},
+	{0x0000a558, 0x8407ff0b, 0x8407ff0b, 0x5a001ceb, 0x5a001ceb},
+	{0x0000a55c, 0x8907ffcb, 0x8907ffcb, 0x5e001eeb, 0x5e001eeb},
+	{0x0000a560, 0x900fff0b, 0x900fff0b, 0x62001eee, 0x62001eee},
+	{0x0000a564, 0x960fffcb, 0x960fffcb, 0x66001ff6, 0x66001ff6},
+	{0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6},
+	{0x0000a580, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a584, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a588, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a58c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a590, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a594, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a598, 0x00000000, 0x00000000, 0x01404501, 0x01404501},
+	{0x0000a59c, 0x00000000, 0x00000000, 0x02808a02, 0x02808a02},
+	{0x0000a5a0, 0x00000000, 0x00000000, 0x02808a02, 0x02808a02},
+	{0x0000a5a4, 0x00000000, 0x00000000, 0x02808803, 0x02808803},
+	{0x0000a5a8, 0x00000000, 0x00000000, 0x04c14b04, 0x04c14b04},
+	{0x0000a5ac, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000a5b0, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000a5b4, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000a5b8, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000a5bc, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305},
+	{0x0000b500, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b504, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b508, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b50c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b510, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b514, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b518, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b51c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b520, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b524, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b528, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b52c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b530, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b534, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b538, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b53c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b540, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b544, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b548, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b54c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b550, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b554, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b558, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b55c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b560, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b564, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b568, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b56c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b570, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b574, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b578, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000b57c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x00016044, 0x05d6b2db, 0x05d6b2db, 0x05d6b2db, 0x05d6b2db},
+	{0x00016048, 0x6c924260, 0x6c924260, 0x6c924260, 0x6c924260},
+};
+
+static const u32 ar9485Modes_low_ob_db_tx_gain_1_1[][5] = {
+	/* Addr      5G_HT20     5G_HT40     2G_HT40     2G_HT20   */
+	{0x000098bc, 0x00000002, 0x00000002, 0x00000002, 0x00000002},
+	{0x0000a2d8, 0xf999a83a, 0xf999a83a, 0x7999a83a, 0x7999a83a},
+	{0x0000a2dc, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
+	{0x0000a2e0, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
+	{0x0000a2e4, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
+	{0x0000a2e8, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552},
 	{0x0000a410, 0x000050d9, 0x000050d9, 0x000050d8, 0x000050d8},
 	{0x0000a458, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
 	{0x0000a500, 0x00022200, 0x00022200, 0x00000000, 0x00000000},
@@ -427,7 +553,7 @@ static const u32 ar9485Modes_high_ob_db_tx_gain_1_1[][5] = {
 	{0x00016048, 0x6c924260, 0x6c924260, 0x6c924260, 0x6c924260},
 };
 
-static const u32 ar9485Modes_low_ob_db_tx_gain_1_1[][5] = {
+static const u32 ar9485_modes_lowest_ob_db_tx_gain_1_1[][5] = {
 	/* Addr      5G_HT20     5G_HT40     2G_HT40     2G_HT20   */
 	{0x000098bc, 0x00000002, 0x00000002, 0x00000002, 0x00000002},
 	{0x0000a2d8, 0xf999a83a, 0xf999a83a, 0x7999a83a, 0x7999a83a},
@@ -521,12 +647,15 @@ static const u32 ar9485Modes_low_ob_db_tx_gain_1_1[][5] = {
 	{0x00016048, 0x6c924260, 0x6c924260, 0x6c924260, 0x6c924260},
 };
 
-#define ar9485_modes_lowest_ob_db_tx_gain_1_1 ar9485Modes_low_ob_db_tx_gain_1_1
-
 static const u32 ar9485Modes_green_spur_ob_db_tx_gain_1_1[][5] = {
 	/* Addr      5G_HT20     5G_HT40     2G_HT40     2G_HT20   */
 	{0x000098bc, 0x00000003, 0x00000003, 0x00000003, 0x00000003},
-	{0x0000a410, 0x000050d9, 0x000050d9, 0x000050d8, 0x000050d8},
+	{0x0000a2d8, 0xf999a83a, 0xf999a83a, 0x7999a83a, 0x7999a83a},
+	{0x0000a2dc, 0x00000000, 0x00000000, 0xffad452a, 0xffad452a},
+	{0x0000a2e0, 0x00000000, 0x00000000, 0xffc98634, 0xffc98634},
+	{0x0000a2e4, 0x00000000, 0x00000000, 0xfff60780, 0xfff60780},
+	{0x0000a2e8, 0x00000000, 0x00000000, 0xfffff800, 0xfffff800},
+	{0x0000a410, 0x000050d9, 0x000050d9, 0x000050d9, 0x000050d9},
 	{0x0000a458, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
 	{0x0000a500, 0x00022200, 0x00022200, 0x00000006, 0x00000006},
 	{0x0000a504, 0x05062002, 0x05062002, 0x03000201, 0x03000201},
@@ -543,23 +672,39 @@ static const u32 ar9485Modes_green_spur_ob_db_tx_gain_1_1[][5] = {
 	{0x0000a530, 0x48023ec6, 0x48023ec6, 0x310006e0, 0x310006e0},
 	{0x0000a534, 0x4d023f01, 0x4d023f01, 0x330006e0, 0x330006e0},
 	{0x0000a538, 0x53023f4b, 0x53023f4b, 0x3e0008e3, 0x3e0008e3},
-	{0x0000a53c, 0x5a027f09, 0x5a027f09, 0x410008e5, 0x410008e5},
-	{0x0000a540, 0x5f027fc9, 0x5f027fc9, 0x430008e6, 0x430008e6},
-	{0x0000a544, 0x6502feca, 0x6502feca, 0x4a0008ec, 0x4a0008ec},
-	{0x0000a548, 0x6b02ff4a, 0x6b02ff4a, 0x4e0008f1, 0x4e0008f1},
-	{0x0000a54c, 0x7203feca, 0x7203feca, 0x520008f3, 0x520008f3},
-	{0x0000a550, 0x7703ff0b, 0x7703ff0b, 0x54000eed, 0x54000eed},
-	{0x0000a554, 0x7d06ffcb, 0x7d06ffcb, 0x58000ef1, 0x58000ef1},
-	{0x0000a558, 0x8407ff0b, 0x8407ff0b, 0x5c000ef3, 0x5c000ef3},
-	{0x0000a55c, 0x8907ffcb, 0x8907ffcb, 0x60000ef5, 0x60000ef5},
-	{0x0000a560, 0x900fff0b, 0x900fff0b, 0x62000ef6, 0x62000ef6},
-	{0x0000a564, 0x960fffcb, 0x960fffcb, 0x62000ef6, 0x62000ef6},
-	{0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
-	{0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
-	{0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
-	{0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
-	{0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
-	{0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6},
+	{0x0000a53c, 0x5a027f09, 0x5a027f09, 0x430008e6, 0x430008e6},
+	{0x0000a540, 0x5f027fc9, 0x5f027fc9, 0x4a0008ec, 0x4a0008ec},
+	{0x0000a544, 0x6502feca, 0x6502feca, 0x4e0008f1, 0x4e0008f1},
+	{0x0000a548, 0x6b02ff4a, 0x6b02ff4a, 0x520008f3, 0x520008f3},
+	{0x0000a54c, 0x7203feca, 0x7203feca, 0x54000eed, 0x54000eed},
+	{0x0000a550, 0x7703ff0b, 0x7703ff0b, 0x58000ef1, 0x58000ef1},
+	{0x0000a554, 0x7d06ffcb, 0x7d06ffcb, 0x5c000ef3, 0x5c000ef3},
+	{0x0000a558, 0x8407ff0b, 0x8407ff0b, 0x62000ef6, 0x62000ef6},
+	{0x0000a55c, 0x8907ffcb, 0x8907ffcb, 0x66001ff0, 0x66001ff0},
+	{0x0000a560, 0x900fff0b, 0x900fff0b, 0x68001ff6, 0x68001ff6},
+	{0x0000a564, 0x960fffcb, 0x960fffcb, 0x68001ff6, 0x68001ff6},
+	{0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6},
+	{0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6},
+	{0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6},
+	{0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6},
+	{0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6},
+	{0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6},
+	{0x0000a580, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a584, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a588, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
+	{0x0000a58c, 0x00000000, 0x00000000, 0x01804000, 0x01804000},
+	{0x0000a590, 0x00000000, 0x00000000, 0x02808a02, 0x02808a02},
+	{0x0000a594, 0x00000000, 0x00000000, 0x0340ca02, 0x0340ca02},
+	{0x0000a598, 0x00000000, 0x00000000, 0x0340cd03, 0x0340cd03},
+	{0x0000a59c, 0x00000000, 0x00000000, 0x0340cd03, 0x0340cd03},
+	{0x0000a5a0, 0x00000000, 0x00000000, 0x06415304, 0x06415304},
+	{0x0000a5a4, 0x00000000, 0x00000000, 0x04c11905, 0x04c11905},
+	{0x0000a5a8, 0x00000000, 0x00000000, 0x06415905, 0x06415905},
+	{0x0000a5ac, 0x00000000, 0x00000000, 0x06415905, 0x06415905},
+	{0x0000a5b0, 0x00000000, 0x00000000, 0x06415905, 0x06415905},
+	{0x0000a5b4, 0x00000000, 0x00000000, 0x06415905, 0x06415905},
+	{0x0000a5b8, 0x00000000, 0x00000000, 0x06415905, 0x06415905},
+	{0x0000a5bc, 0x00000000, 0x00000000, 0x06415905, 0x06415905},
 	{0x0000b500, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
 	{0x0000b504, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
 	{0x0000b508, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a},
@@ -823,6 +968,7 @@ static const u32 ar9485_common_rx_gain_1_1[][2] = {
 	{0x00009e00, 0x03721b20},
 	{0x00009e04, 0x00082020},
 	{0x00009e18, 0x0300501e},
+	{0x00009e20, 0x000003ba},
 	{0x00009e2c, 0x00002e21},
 	{0x00009e44, 0x02182324},
 	{0x0000a000, 0x00060005},
@@ -1001,7 +1147,6 @@ static const u32 ar9485_1_1_baseband_postamble[][5] = {
 	{0x00009e10, 0x7ec88d2e, 0x7ec88d2e, 0x7ec80d2e, 0x7ec80d2e},
 	{0x00009e14, 0x31395d53, 0x31396053, 0x312e6053, 0x312e5d53},
 	{0x00009e1c, 0x0001cf9c, 0x0001cf9c, 0x00021f9c, 0x00021f9c},
-	{0x00009e20, 0x000003b5, 0x000003b5, 0x000003ce, 0x000003ce},
 	{0x00009e3c, 0xcf946220, 0xcf946220, 0xcf946222, 0xcf946222},
 	{0x00009e48, 0x5030201a, 0x5030201a, 0x50302010, 0x50302010},
 	{0x00009fc8, 0x0003f000, 0x0003f000, 0x0001a000, 0x0001a000},
@@ -1020,7 +1165,7 @@ static const u32 ar9485_1_1_baseband_postamble[][5] = {
 	{0x0000a284, 0x00000000, 0x00000000, 0x000002a0, 0x000002a0},
 	{0x0000a288, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
 	{0x0000a28c, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
-	{0x0000a2c4, 0x00158d18, 0x00158d18, 0x00058d18, 0x00058d18},
+	{0x0000a2c4, 0x00158d18, 0x00158d18, 0x00158d18, 0x00158d18},
 	{0x0000a2d0, 0x00071981, 0x00071981, 0x00071982, 0x00071982},
 	{0x0000a2d8, 0xf999a83a, 0xf999a83a, 0xf999a83a, 0xf999a83a},
 	{0x0000a358, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
@@ -1206,6 +1351,11 @@ static const u32 ar9485_1_1_mac_core[][2] = {
 	{0x000083d0, 0x000301ff},
 };
 
-#define ar9485_1_1_baseband_core_txfir_coeff_japan_2484 ar9462_2p0_baseband_core_txfir_coeff_japan_2484
+static const u32 ar9485_1_1_baseband_core_txfir_coeff_japan_2484[][2] = {
+	/* Addr      allmodes  */
+	{0x0000a398, 0x00000000},
+	{0x0000a39c, 0x6f7f0301},
+	{0x0000a3a0, 0xca9228ee},
+};
 
 #endif /* INITVALS_9485_H */
-- 
1.8.4


^ permalink raw reply related

* Re: [PATCH v2 13/16] wcn36xx: add wcn36xx.h
From: Kalle Valo @ 2013-09-03  5:08 UTC (permalink / raw)
  To: Joe Perches; +Cc: Eugene Krasnikov, linux-wireless, wcn36xx
In-Reply-To: <1378144193.1953.88.camel@joe-AO722>

Joe Perches <joe@perches.com> writes:

> On Mon, 2013-09-02 at 17:15 +0300, Kalle Valo wrote:
>> Joe Perches <joe@perches.com> writes:
>> 
>> >> +#define wcn36xx_dbg(mask, fmt, arg...) do {			\
>> >> +	if (debug_mask & mask)					\
>> >> +		printk(KERN_DEBUG pr_fmt(fmt), ##arg);	\
>> >> +} while (0)
>> >
>> > And maybe this one using pr_debug so dynamic_debug
>> > can work too.
>> 
>> Please, no dynamic_debug. It's useless on a wifi driver.
>
> Why is that?

It's not really usable in practise, at least the last time I looked at
it. It's cumbersome to enable log messages based on their line numbers
and line numbers change so you can't really make any scripts to help
with that. And enabling log messages on the file level is sometimes too
much. So it would really need some sort of grouping feature with a
stable interface.

-- 
Kalle Valo

^ permalink raw reply

* Re: [PATCH v2 13/16] wcn36xx: add wcn36xx.h
From: Joe Perches @ 2013-09-03  5:13 UTC (permalink / raw)
  To: Kalle Valo; +Cc: Eugene Krasnikov, linux-wireless, wcn36xx
In-Reply-To: <87bo4av6fj.fsf@purkki.adurom.net>

On Tue, 2013-09-03 at 08:08 +0300, Kalle Valo wrote:
> Joe Perches <joe@perches.com> writes:
> Please, no dynamic_debug. It's useless on a wifi driver.
> > Why is that?
> It's not really usable in practise, at least the last time I looked at
> it.

Then you probably haven't looked recently.

> It's cumbersome to enable log messages based on their line numbers
> and line numbers change so you can't really make any scripts to help
> with that.

Most don't do that.
Generally it's enabled/disabled by module.

> And enabling log messages on the file level is sometimes too
> much. So it would really need some sort of grouping feature with a
> stable interface.

Like by module?




^ permalink raw reply

* Re: [PATCH v2 13/16] wcn36xx: add wcn36xx.h
From: Kalle Valo @ 2013-09-03  5:25 UTC (permalink / raw)
  To: Joe Perches; +Cc: Eugene Krasnikov, linux-wireless, wcn36xx
In-Reply-To: <1378185231.29083.15.camel@joe-AO722>

Joe Perches <joe@perches.com> writes:

> Most don't do that.
> Generally it's enabled/disabled by module.
>
>> And enabling log messages on the file level is sometimes too
>> much. So it would really need some sort of grouping feature with a
>> stable interface.
>
> Like by module?

What does module mean in this context? File like "wmi.c" or something
else?

-- 
Kalle Valo

^ permalink raw reply

* Re: [PATCH v2 13/16] wcn36xx: add wcn36xx.h
From: Joe Perches @ 2013-09-03  5:27 UTC (permalink / raw)
  To: Kalle Valo; +Cc: Eugene Krasnikov, linux-wireless, wcn36xx
In-Reply-To: <877geyv5ma.fsf@purkki.adurom.net>

On Tue, 2013-09-03 at 08:25 +0300, Kalle Valo wrote:
> Joe Perches <joe@perches.com> writes:
> 
> > Most don't do that.
> > Generally it's enabled/disabled by module.
> >
> >> And enabling log messages on the file level is sometimes too
> >> much. So it would really need some sort of grouping feature with a
> >> stable interface.
> >
> > Like by module?
> 
> What does module mean in this context?

KBUILD_MODNAME



^ permalink raw reply

* Re: [PATCH v2 13/16] wcn36xx: add wcn36xx.h
From: Kalle Valo @ 2013-09-03  5:39 UTC (permalink / raw)
  To: Joe Perches; +Cc: Eugene Krasnikov, linux-wireless, wcn36xx
In-Reply-To: <1378186024.2048.0.camel@joe-AO722>

Joe Perches <joe@perches.com> writes:

> On Tue, 2013-09-03 at 08:25 +0300, Kalle Valo wrote:
>> Joe Perches <joe@perches.com> writes:
>> 
>> > Most don't do that.
>> > Generally it's enabled/disabled by module.
>> >
>> >> And enabling log messages on the file level is sometimes too
>> >> much. So it would really need some sort of grouping feature with a
>> >> stable interface.
>> >
>> > Like by module?
>> 
>> What does module mean in this context?
>
> KBUILD_MODNAME

Ok, so there's no way to have functionality like ATH6KL_DBG_BOOT which
prints information from various files during firmware boot. So
dynamic_debug is not really usable for my work flow.

-- 
Kalle Valo

^ permalink raw reply

* Re: [PATCH v2 13/16] wcn36xx: add wcn36xx.h
From: Joe Perches @ 2013-09-03  5:41 UTC (permalink / raw)
  To: Kalle Valo; +Cc: Eugene Krasnikov, linux-wireless, wcn36xx
In-Reply-To: <8738pmv4zv.fsf@purkki.adurom.net>

On Tue, 2013-09-03 at 08:39 +0300, Kalle Valo wrote:
> >> What does module mean in this context?
> >
> > KBUILD_MODNAME
> 
> Ok, so there's no way to have functionality like ATH6KL_DBG_BOOT which
> prints information from various files during firmware boot. So
> dynamic_debug is not really usable for my work flow.

I'm confused by your response.
Dynamic debug can work with external masks/levels.
What functionality do you think you're missing?


^ permalink raw reply

* Re: [PATCH v2 13/16] wcn36xx: add wcn36xx.h
From: Kalle Valo @ 2013-09-03  5:48 UTC (permalink / raw)
  To: Joe Perches; +Cc: Eugene Krasnikov, linux-wireless, wcn36xx
In-Reply-To: <1378186879.2048.2.camel@joe-AO722>

Joe Perches <joe@perches.com> writes:

> On Tue, 2013-09-03 at 08:39 +0300, Kalle Valo wrote:
>> >> What does module mean in this context?
>> >
>> > KBUILD_MODNAME
>> 
>> Ok, so there's no way to have functionality like ATH6KL_DBG_BOOT which
>> prints information from various files during firmware boot. So
>> dynamic_debug is not really usable for my work flow.
>
> I'm confused by your response.
> Dynamic debug can work with external masks/levels.
> What functionality do you think you're missing?

I was just replying to your question why I think dynamic_debug is not
usable in wifi drivers.

-- 
Kalle Valo

^ permalink raw reply

* Re: [PATCH] Add WLI-UC-G300HP's Product ID.
From: Kalle Valo @ 2013-09-03  6:15 UTC (permalink / raw)
  To: Masami Ichikawa
  Cc: IvDoorn, gwingerde, helmut.schaa, linville, linux-wireless, users,
	netdev, linux-kernel
In-Reply-To: <1377617843-28835-1-git-send-email-masami256@gmail.com>

Masami Ichikawa <masami256@gmail.com> writes:

> Support Bufallo WLI-UC-G300HP.
>
> Signed-off-by: Masami Ichikawa <masami256@gmail.com>

Please add "rt2x00: " prefix to the commit title.

-- 
Kalle Valo

^ permalink raw reply

* Re: [PATCH 2/4] initvals: Remove duplicate mapping for AR9485 arrays
From: Felix Fietkau @ 2013-09-03  6:25 UTC (permalink / raw)
  To: Sujith Manoharan; +Cc: Luis R. Rodriguez, linux-wireless
In-Reply-To: <1378184318-1169-2-git-send-email-sujith@msujith.org>

On 2013-09-03 6:58 AM, Sujith Manoharan wrote:
> From: Sujith Manoharan <c_manoha@qca.qualcomm.com>
> 
> Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Why did you make this change? At least the mac_postamble is still
identical, and with the other arrays you can just let the initvals tool
detect if mappings are duplicate or not.

- Felix

^ permalink raw reply

* Re: [PATCH v2 0/7] ath10k: pci cleanup
From: Kalle Valo @ 2013-09-03  6:50 UTC (permalink / raw)
  To: ath10k; +Cc: linux-wireless
In-Reply-To: <20130901070020.14695.16694.stgit@localhost6.localdomain6>

Kalle Valo <kvalo@qca.qualcomm.com> writes:

> Small PCI related code cleanup. Depends on Michal's CE
> clean patchset.
>
> v2:
>
> o remove unnecessary cast in patch 3 (from Gabor)
>
> ---
>
> Kalle Valo (7):
>       ath10k: pci: make host_ce_config_wlan[] more readable
>       ath10k: make target_ce_config_wlan more readable
>       ath10k: remove void pointer from struct ath10k_pci_compl
>       ath10k: convert ath10k_pci_reg_read/write32() to take struct ath10k
>       ath10k: clean up ath10k_ce_completed_send_next_nolock()
>       ath10k: convert ath10k_pci_wake() to return
>       ath10k: simplify ath10k_ce_init() wake up handling

All seven applied.

-- 
Kalle Valo

^ permalink raw reply

* Re: [PATCH 2/4] initvals: Remove duplicate mapping for AR9485 arrays
From: Sujith Manoharan @ 2013-09-03  6:48 UTC (permalink / raw)
  To: Felix Fietkau; +Cc: Luis R. Rodriguez, linux-wireless
In-Reply-To: <522580E2.2090501@openwrt.org>

Felix Fietkau wrote:
> Why did you make this change? At least the mac_postamble is still
> identical, and with the other arrays you can just let the initvals tool
> detect if mappings are duplicate or not.

AR9485 is still maintained and it makes it a bit easier to update the
initvals. The gain value arrays differ from AR9462/AR9300, so only
mac_postamble can be reused - which is a small array and space savings
is marginal.

If PC-OEM card support is compiled out, we can have a bigger gain.
AR9485 1.1, AR9462 2.0, AR9462 2.1, AR9565 1.0/1.0.1 (AR9565 1.1 to come)
are not needed for AP platforms.

Sujith

^ permalink raw reply

* Re: [PATCH v2 0/2] ath10k: detect hw1.0 boards
From: Kalle Valo @ 2013-09-03  7:00 UTC (permalink / raw)
  To: ath10k; +Cc: linux-wireless
In-Reply-To: <20130901082007.1930.79088.stgit@localhost6.localdomain6>

Kalle Valo <kvalo@qca.qualcomm.com> writes:

> Here's a patchset which detects hw1.0 from the
> chip id register and fails the probe if found.
>
> v2:
>
> o use SOC_CHIP_ID_REV_MASK
>
> o move detection to core.c so that it's not just PCI
>   specific
>
> o add debugfs file for reading the chip id
>
> ---
>
> Kalle Valo (2):
>       ath10k: check chip id from the soc register during probe
>       ath10k: add chip_id file to debugfs

Both patches applied, but I fixed the commit log in patch 1 based on the
discussion.

-- 
Kalle Valo

^ permalink raw reply

* Re: [PATCH v3 1/2] ath10k: update wal_dbg_tx_stats structure with missing parameter.
From: Kalle Valo @ 2013-09-03  7:05 UTC (permalink / raw)
  To: Bartosz Markowski; +Cc: ath10k, linux-wireless
In-Reply-To: <1377778061-22331-2-git-send-email-bartosz.markowski@tieto.com>

Bartosz Markowski <bartosz.markowski@tieto.com> writes:

> It's very imporatant to keep these structs up to date with FW abi,
> due to the arithmetic we use while read the fw_stats.
>
> Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
> ---
>  drivers/net/wireless/ath/ath10k/wmi.h |    3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/ath/ath10k/wmi.h
> index 08860c4..5b94707 100644
> --- a/drivers/net/wireless/ath/ath10k/wmi.h
> +++ b/drivers/net/wireless/ath/ath10k/wmi.h
> @@ -1767,6 +1767,9 @@ struct wal_dbg_tx_stats {
>  	/* wal pdev resets  */
>  	__le32 pdev_resets;
>  
> +	/* frames dropped due to non-availability of stateless TIDs */
> +	__le32 stateless_tid_alloc_failure;
> +
>  	__le32 phy_underrun;

I still wonder if this needs a feature bit. At least you should mention
in the commit log why it's not needed.

-- 
Kalle Valo

^ permalink raw reply

* Re: [PATCH v3 2/2] ath10k: implement per-VDEV FW statistics
From: Kalle Valo @ 2013-09-03  7:13 UTC (permalink / raw)
  To: Bartosz Markowski; +Cc: ath10k, linux-wireless
In-Reply-To: <1377778061-22331-3-git-send-email-bartosz.markowski@tieto.com>

Bartosz Markowski <bartosz.markowski@tieto.com> writes:

> The WMI_REQUEST_PEER_STAT command with latst (1.0.0.716) FW
> can return per-VDEV statistics. Using debugfs we can fetch this info now.
>
> This is a backward compatible change. In case of older FW the VDEV
> statistics are simply not returned.
>
> Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>

[...]

>  	if (num_peer_stats) {
> -		struct wmi_peer_stats *peer_stats;
>  		struct ath10k_peer_stat *s;
> +		struct wmi_peer_stats_1 *peer_stats_1;
> +		struct wmi_peer_stats_2 *peer_stats_2;
>  
>  		stats->peers = num_peer_stats;
>  
>  		for (i = 0; i < num_peer_stats; i++) {
> -			peer_stats = (struct wmi_peer_stats *)tmp;
> +			peer_stats_1 = (struct wmi_peer_stats_1 *)tmp;

You still have this evil cast here which assumes struct wmi_peer_stats_1
starts with the same content as _2. It's better to spell that out in the
code, for example like this:

if (test_bit(ATH10K_FW_FEATURE_VDEV_STATS, ar->fw_features)) {
             peer_v2 = (struct wmi_peer_stats_v2 *)tmp;
             peer_stats = &peer_v2->common;
             tmp += sizeof(*peer_v2);
} else {
             peer_v1 = (struct wmi_peer_stats_v1 *)tmp;
             peer_stats = &peer_v1->common;
             tmp += sizeof(*peer_v1);
}

> +struct wmi_peer_stats_1 {

struct wmi_peer_stats_v1

> +struct wmi_peer_stats_2 {

struct wmi_peer_stats_v2

-- 
Kalle Valo

^ permalink raw reply


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox