mac80211: parse the HT capabilities info through debugfs
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 7 Dec 2009 19:54:45 +0000 (14:54 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 22 Dec 2009 18:56:00 +0000 (13:56 -0500)
commit7db94e210351e8578d4a98fed3edd4df5f10ae9d
treefdef27e3c61a13548bb9f27f44e6f12fa9af501f
parentcb136f54ee11f9ead716b5ad0b10fa1c1b05271d
mac80211: parse the HT capabilities info through debugfs

When debugging you want to be lazy and not have to parse
bits yourself so let mac80211 debugfs do the parsing for you.

This is what I get against my WRT610N:

root@tux:~# cat /sys/kernel/debug/ieee80211/phy0/stations/00\:22\:6b\:aa\:bb\:01/ht_capa
ht supported
cap: 0x000e
HT20/HT40
SM Power Save disabled
No RX STBC
Max AMSDU length: 7935 bytes
No DSSS/CCK HT40
ampdu factor/density: 2/6
MCS mask: ff ff 00 00 00 00 00 00 00 00
MCS rx highest: 0
MCS tx params: 0

Cc: johannes@sipsolutions.net
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/debugfs_sta.c