diff mbox

ath9k pending patches

Message ID 21142.4319.977971.553792@gargle.gargle.HOWL (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Sujith Manoharan Nov. 27, 2013, 3:33 p.m. UTC
Antonio Quartulli wrote:
> What does this ALWAYS_PERFORM_KEY_SEARCH bit do? Is it set within the
> initvalues?

Here is a patch to set ALWAYS_PERFORM_KEY_SEARCH for AR9300 2.2.
Since AR9331, AR9340 and AR9580 use the same array, it applies for
them too.




Sujith
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Antonio Quartulli Nov. 27, 2013, 3:43 p.m. UTC | #1
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 27/11/13 16:33, Sujith Manoharan wrote:
> Antonio Quartulli wrote:
>> What does this ALWAYS_PERFORM_KEY_SEARCH bit do? Is it set within
>> the initvalues?
> 
> Here is a patch to set ALWAYS_PERFORM_KEY_SEARCH for AR9300 2.2. 
> Since AR9331, AR9340 and AR9580 use the same array, it applies for 
> them too.



Thanks a lot!


- -- 
Antonio Quartulli
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBCAAGBQJSlhMbAAoJEADl0hg6qKeO0+AQAJhKbyNAwXQNbNyO82zaePRG
WRD2QtPKwNW6O89WZyCP9e63ZqmFDjKaqvLgthclznO2BN+kcOOFIBC0nJ/OKkOl
nzSZnRp6VVrxKHUMj2VbdjTr90ls9v9qf/C1qJTxBTRKxFt8NX2rErGLe3pTZwXp
R9geDAQo2NV2Ho735f7LW9D6f9UyHgYGTVKGm3XDPHdIEz0U/mv0lqbkx3HTsCPx
WVCYgEzqy8cs7Vf+yFHv8iQNhmDtf8UECTKJ9Cvu45np/wDmgFP/AtpY+TN5B1VC
hzBj7OL3BD0hepjUhh8r4SiqR6LyDL+MfHvyL2Y616ZFr+rbHYUYX+V7Fov7w2Om
lovKlcGu4AU4e2kgowGWlfAd5YGif2SNKQ3RiMdTpNsXVlIZMu286urrT5Y8H6pR
eUgThc/5CKpum3a0jCw2FbZr7naC3mJEWVsrB2z8rMvuUnM4ZekwhCHsOMBnQHMf
6sw9Iw7AxujZjTqoF5HgTnaDJb0Op63EUDa3HW+rq3qpRy/RK/qZ+AM0R2pipiO3
wHmlBHOYfct8sHl8Hx3VuEmS9Yd//yJqNcDf7iOriU6rqRrdxrn8VWhSUSEXOg7M
+uohr2ibPLmVQgjFik/Yzi+0lIZ6Lu1E1vE0zGZkgQVxLpqNTugyjW/VZansnG85
3+ddAqwHoioyFFkBcIQE
=XNZ4
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Antonio Quartulli Nov. 27, 2013, 3:58 p.m. UTC | #2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 27/11/13 16:43, Antonio Quartulli wrote:
> On 27/11/13 16:33, Sujith Manoharan wrote:
>> Antonio Quartulli wrote:
>>> What does this ALWAYS_PERFORM_KEY_SEARCH bit do? Is it set
>>> within the initvalues?
> 
>> Here is a patch to set ALWAYS_PERFORM_KEY_SEARCH for AR9300 2.2.
>>  Since AR9331, AR9340 and AR9580 use the same array, it applies
>> for them too.
> 
> 

Sujith,

What about AR9285 ? I can't find any reference to this chip. Does it
use the same array too ?


Cheers,


- -- 
Antonio Quartulli
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBCAAGBQJSlhaKAAoJEADl0hg6qKeObVEP/jDCMW7DrNhL4WOWnXBed7TD
0XKppoj2v1xlEX8LSTmzOBj28aZfqPpR6evbX+4B6oWPwQyChsJQnvHSCX5EvXvg
F8uspw1/Kpij5RgTn6GXWnUoBiJTjOHwBRKDwp2HgoKk4plNwwGl1NQ/toEGhYe9
B41Pt5xGFhYFEdu+r4vxss0motF4s/05JPkycbaJe3WP2G47QpuMDHumOshN3CdD
Kd9yP8FZKJVtnsFVUM460VNIwRD69b9TeYbBrEvgkvWZ97Y/S/TFSq2P1UDRr4wG
FLiywN8lDvJ1YrZoaQwqu7R9cXJjLKaOKjt8sVKrARfsCf0SWT6oIqPgpAnYgG7J
YLwM000umrUDZbPjA7dm5LWck3gvnk1eKLRqxW8QZDBagi6pirkpx0lqnqfCRHLV
1B7aBerl27VE5MawNSi/mwMjxRcTHrqBeKY+0ua3cypCrWbjj/qvknJQuB66Ae3A
EYQ6ehPZLCT8od10VJVBOrIF23Tehv4O2xV9KgvbtD+1pvAi9DcyJ5V3Y+r271eF
qEIBMCGtengaWusseTVyglTQ8vbdlzrWhuUJE2Fex01Tf4kD1d2MsH+G1yS1Oo3y
MnUHt4yVtQWCRFcimLEdF9kfF+WtbM+8CSW/xMcih2BqZaE4OVi9Dqzzkdxdx7+t
Ca+g08UoDhC4hmVa0mxX
=wMqg
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Felix Fietkau Nov. 27, 2013, 4 p.m. UTC | #3
On 2013-11-27 16:33, Sujith Manoharan wrote:
> Antonio Quartulli wrote:
>> What does this ALWAYS_PERFORM_KEY_SEARCH bit do? Is it set within the
>> initvalues?
> 
> Here is a patch to set ALWAYS_PERFORM_KEY_SEARCH for AR9300 2.2.
> Since AR9331, AR9340 and AR9580 use the same array, it applies for
> them too.
> 
> 
> diff --git a/drivers/net/wireless/ath/ath9k/ar9003_2p2_initvals.h b/drivers/net/wireless/ath/ath9k/ar9003_2p2_initvals.h
> index 1553395..819ecf3 100644
> --- a/drivers/net/wireless/ath/ath9k/ar9003_2p2_initvals.h
> +++ b/drivers/net/wireless/ath/ath9k/ar9003_2p2_initvals.h
> @@ -303,7 +303,7 @@ static const u32 ar9300_2p2_mac_postamble[][5] = {
>  	{0x000010b0, 0x00000e60, 0x00001cc0, 0x00007c70, 0x00003e38},
>  	{0x00008014, 0x03e803e8, 0x07d007d0, 0x10801600, 0x08400b00},
>  	{0x0000801c, 0x128d8027, 0x128d804f, 0x12e00057, 0x12e0002b},
> -	{0x00008120, 0x08f04800, 0x08f04800, 0x08f04810, 0x08f04810},
> +	{0x00008120, 0x18f04800, 0x18f04800, 0x18f04810, 0x18f04810},
>  	{0x000081d0, 0x00003210, 0x00003210, 0x0000320a, 0x0000320a},
>  	{0x00008318, 0x00003e80, 0x00007d00, 0x00006880, 0x00003440},
>  };
There's no need to patch the initvals for this issue at all. ath9k has
enabled AR_PCU_ALWAYS_PERFORM_KEYSEARCH via ah->misc_mode for a long
time now.

- Felix

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Sujith Manoharan Nov. 27, 2013, 4:34 p.m. UTC | #4
Felix Fietkau wrote:
> There's no need to patch the initvals for this issue at all. ath9k has
> enabled AR_PCU_ALWAYS_PERFORM_KEYSEARCH via ah->misc_mode for a long
> time now.

Yes, you are right. So the timer workaround is needed, I guess.

Sujith
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/net/wireless/ath/ath9k/ar9003_2p2_initvals.h b/drivers/net/wireless/ath/ath9k/ar9003_2p2_initvals.h
index 1553395..819ecf3 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_2p2_initvals.h
+++ b/drivers/net/wireless/ath/ath9k/ar9003_2p2_initvals.h
@@ -303,7 +303,7 @@  static const u32 ar9300_2p2_mac_postamble[][5] = {
 	{0x000010b0, 0x00000e60, 0x00001cc0, 0x00007c70, 0x00003e38},
 	{0x00008014, 0x03e803e8, 0x07d007d0, 0x10801600, 0x08400b00},
 	{0x0000801c, 0x128d8027, 0x128d804f, 0x12e00057, 0x12e0002b},
-	{0x00008120, 0x08f04800, 0x08f04800, 0x08f04810, 0x08f04810},
+	{0x00008120, 0x18f04800, 0x18f04800, 0x18f04810, 0x18f04810},
 	{0x000081d0, 0x00003210, 0x00003210, 0x0000320a, 0x0000320a},
 	{0x00008318, 0x00003e80, 0x00007d00, 0x00006880, 0x00003440},
 };