* [ath9k-devel] [PATCH v1 0/3] support for antenna configuration profiles
@ 2011-11-28 14:56 Daniel Golle
2011-11-28 15:07 ` Mohammed Shafi
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Golle @ 2011-11-28 14:56 UTC (permalink / raw)
To: ath9k-devel
Hi!
It took me a while to get this into a nice shape and make the code less hackish.
Thank you for all the helpful feedback on PATCH v0 and the RFC!
I'm looking forward to your comments and highly appreciate any further advise.
Changes since my previous patch:
* restructured nl80211 stuff, putting the whole thing into a NLA_NESTED makes
the parser happy.
* store selection state in the driver instead of overwriting the value in the
AntCtrlCommon field.
* expose selected switch_com_value in eeprom_4k.
* moved stuff in ath9k to where it belongs (afaik)
* lots of cosmetics
I got my patched-up version of iw and works like a charm with the ALL0258N now:
root at OpenWrt:/# iw list
Wiphy phy0:
Band 1:
...
Device supports antenna configuration profiles.
(*) 0 horiz (horizontal TX, vertical RX)
( ) 1 vert (vertical TX, horizontal RX)
...
root at OpenWrt:/# grep 9964 /sys/kernel/debug/ieee80211/phy0/ath9k/regdump
0x009964 0x00000000
root at OpenWrt:/# iw phy phy0 interface add wlan0 type station
root at OpenWrt:/# ifconfig wlan0 up
root at OpenWrt:/# grep 9964 /sys/kernel/debug/ieee80211/phy0/ath9k/regdump
0x009964 0x09a00210
root at OpenWrt:/# ifconfig wlan0 down
root at OpenWrt:/# iw set extant 1
root at OpenWrt:/# iw list
Wiphy phy0
Band 1:
...
Device supports antenna configuration profiles.
( ) 0 horiz (horizontal TX, vertical RX)
(*) 1 vert (vertical TX, horizontal RX)
...
root at OpenWrt:/# ifconfig wlan0 up
root at OpenWrt:/# grep 9964 /sys/kernel/debug/ieee80211/phy0/ath9k/regdump
0x009964 0x0a900120
Here the patch for iw. I'm planing to partially reimplement that in libiwinfo
for OpenWrt's LuCI.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20111128/25e7ac58/attachment.pgp
^ permalink raw reply [flat|nested] 2+ messages in thread* [ath9k-devel] [PATCH v1 0/3] support for antenna configuration profiles
2011-11-28 14:56 [ath9k-devel] [PATCH v1 0/3] support for antenna configuration profiles Daniel Golle
@ 2011-11-28 15:07 ` Mohammed Shafi
0 siblings, 0 replies; 2+ messages in thread
From: Mohammed Shafi @ 2011-11-28 15:07 UTC (permalink / raw)
To: ath9k-devel
Hi Daniel,
we will get more review comments and more people to look when we send
patches to
linux wireless mailing list. especially mac/cfg/nl 80211 changes
On Mon, Nov 28, 2011 at 8:26 PM, Daniel Golle <dgolle@allnet.de> wrote:
> Hi!
> It took me a while to get this into a nice shape and make the code less hackish.
> Thank you for all the helpful feedback on PATCH v0 and the RFC!
> I'm looking forward to your comments and highly appreciate any further advise.
>
> Changes since my previous patch:
> ?* restructured nl80211 stuff, putting the whole thing into a NLA_NESTED makes
> ? the parser happy.
> ?* store selection state in the driver instead of overwriting the value in the
> ? AntCtrlCommon field.
> ?* expose selected switch_com_value in eeprom_4k.
> ?* moved stuff in ath9k to where it belongs (afaik)
> ?* lots of cosmetics
>
> I got my patched-up version of iw and works like a charm with the ALL0258N now:
>
> root at OpenWrt:/# iw list
> Wiphy phy0:
> ? ? ? ?Band 1:
> ? ? ? ?...
> ? ? ? ?Device supports antenna configuration profiles.
> ? ? ? ? ? ? ? ? (*) 0 ?horiz ? (horizontal TX, vertical RX)
> ? ? ? ? ? ? ? ? ( ) 1 ?vert ? ?(vertical TX, horizontal RX)
> ? ? ? ?...
>
> root at OpenWrt:/# grep 9964 /sys/kernel/debug/ieee80211/phy0/ath9k/regdump
> 0x009964 0x00000000
> root at OpenWrt:/# iw phy phy0 interface add wlan0 type station
> root at OpenWrt:/# ifconfig wlan0 up
> root at OpenWrt:/# grep 9964 /sys/kernel/debug/ieee80211/phy0/ath9k/regdump
> 0x009964 0x09a00210
> root at OpenWrt:/# ifconfig wlan0 down
> root at OpenWrt:/# iw set extant 1
> root at OpenWrt:/# iw list
> Wiphy phy0
> ? ? ? ?Band 1:
> ? ? ? ?...
> ? ? ? ?Device supports antenna configuration profiles.
> ? ? ? ? ? ? ? ? ( ) 0 ?horiz ? (horizontal TX, vertical RX)
> ? ? ? ? ? ? ? ? (*) 1 ?vert ? ?(vertical TX, horizontal RX)
> ? ? ? ?...
>
> root at OpenWrt:/# ifconfig wlan0 up
> root at OpenWrt:/# grep 9964 /sys/kernel/debug/ieee80211/phy0/ath9k/regdump
> 0x009964 0x0a900120
>
> Here the patch for iw. I'm planing to partially reimplement that in libiwinfo
> for OpenWrt's LuCI.
>
>
> _______________________________________________
> ath9k-devel mailing list
> ath9k-devel at lists.ath9k.org
> https://lists.ath9k.org/mailman/listinfo/ath9k-devel
>
>
--
shafi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-28 15:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-28 14:56 [ath9k-devel] [PATCH v1 0/3] support for antenna configuration profiles Daniel Golle
2011-11-28 15:07 ` Mohammed Shafi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.