Looking through the driver code, i'm getting somewhere..
It looks like that sets bits in the station flags
[dylan@zenbook iwlwifi]$ grep rx_nss * -r -A 10
mvm/sta.c: switch (sta->rx_nss) {
mvm/sta.c- case 1:
mvm/sta.c- add_sta_cmd.station_flags |= cpu_to_le32(STA_FLG_MIMO_EN_SISO);
mvm/sta.c- break;
mvm/sta.c- case 2:
mvm/sta.c- add_sta_cmd.station_flags |= cpu_to_le32(STA_FLG_MIMO_EN_MIMO2);
mvm/sta.c- break;
mvm/sta.c- case 3 ... 8:
mvm/sta.c- add_sta_cmd.station_flags |= cpu_to_le32(STA_FLG_MIMO_EN_MIMO3);
mvm/sta.c- break;
mvm/sta.c- }
A google search for 'debugfs mimo' turns up a code change pushed a long
time ago:
"Adding more Radio information when displaying
rate_scale_table. This can help to understand how many antenna and the
current RF condition such as SISO, MIMO2, MIMO3."
http://osdir.com/ml/linux-wireless/2009-03/msg00401.html
from another look at the code, i can see rate_scale_table being printed to
debugfs:
[dylan@zenbook iwlwifi]$ grep rate_scale_table * -r | grep -v Binary
dvm/rs.c: debugfs_create_file("rate_scale_table", S_IRUSR | S_IWUSR, dir,
mvm/rs.c: debugfs_create_file("rate_scale_table", S_IRUSR | S_IWUSR, dir,
Find the rate table in the directory structure, apparently associated with
the station that the wireless card is currently associated with:
[root@zenbook debug]# find -iname "*rate_scale_table*"
./ieee80211/phy0/netdev:wlan0/stations/10:6f:3f:0c:02:dd/rate_scale_table
and here's what the table looks like when connected to my buffalo
wzr-hp-ag300n:
[root@zenbook debug]# cat
./ieee80211/phy0/netdev:wlan0/stations/10:6f:3f:0c:02:dd/rate_scale_table
sta_id 0
failed=0 success=0 rate=0FF0
fixed rate 0x0
valid_tx_ant ANT_A,ANT_B,
lq type HT
SISO 40MHz AGG on
last tx rate=0x6902
general:flags=0x1 mimo-d=0 s-ant0x1 d-ant=0x3
agg:time_limit=4000 dist_start_th=3 frame_cnt_limit=63
Start idx [0]=0x0 [1]=0x0 [2]=0x0 [3]=0x0
rate[0] 0x6903 24mbps (16QAM 1/2)
rate[1] 0x6903 24mbps (16QAM 1/2)
rate[2] 0x6902 18mbps (QPSK 3/4)
rate[3] 0x6902 18mbps (QPSK 3/4)
rate[4] 0x6902 18mbps (QPSK 3/4)
rate[5] 0x4005 12mbps (QPSK 1/2)
rate[6] 0x800F 9mbps (BPSK 1/2)
rate[7] 0x400D 6mbps (BPSK 1/2)
rate[8] 0x800D 6mbps (BPSK 1/2)
rate[9] 0x400D 6mbps (BPSK 1/2)
rate[10] 0x800D 6mbps (BPSK 1/2)
rate[11] 0x400D 6mbps (BPSK 1/2)
rate[12] 0x800D 6mbps (BPSK 1/2)
rate[13] 0x400D 6mbps (BPSK 1/2)
rate[14] 0x800D 6mbps (BPSK 1/2)
rate[15] 0x400D 6mbps (BPSK 1/2)
Versus here is what it looks like on my wdr3700
[root@zenbook debug]# cat $(find -iname "*rate_scale_table*")
sta_id 0
failed=66 success=639 rate=0FF0
fixed rate 0x0
valid_tx_ant ANT_A,ANT_B,
lq type HT
MIMO2 40MHz SGI AGG on
last tx rate=0xE90B
general:flags=0x1 mimo-d=5 s-ant0x2 d-ant=0x3
agg:time_limit=4000 dist_start_th=3 frame_cnt_limit=63
Start idx [0]=0x0 [1]=0x0 [2]=0x0 [3]=0x0
rate[0] 0xE90B 24mbps (16QAM 1/2)
rate[1] 0xE90B 24mbps (16QAM 1/2)
rate[2] 0xE90A 18mbps (QPSK 3/4)
rate[3] 0xE90A 18mbps (QPSK 3/4)
rate[4] 0xE90A 18mbps (QPSK 3/4)
rate[5] 0x4005 12mbps (QPSK 1/2)
rate[6] 0x800F 9mbps (BPSK 1/2)
rate[7] 0x400D 6mbps (BPSK 1/2)
rate[8] 0x800D 6mbps (BPSK 1/2)
rate[9] 0x400D 6mbps (BPSK 1/2)
rate[10] 0x800D 6mbps (BPSK 1/2)
rate[11] 0x400D 6mbps (BPSK 1/2)
rate[12] 0x800D 6mbps (BPSK 1/2)
rate[13] 0x400D 6mbps (BPSK 1/2)
rate[14] 0x800D 6mbps (BPSK 1/2)
rate[15] 0x400D 6mbps (BPSK 1/2)
We can see in the 6th line that it was operating in SISO mode on the
wzr-hp-ag300n, and MIMO2 (2stream) on the wdr3700.
That said, I found that the wzr-hp-ag300 also is 2t2r; if i get closer to
the router, it will flip to MIMO2
FIgured I would reply with my findings as it would be searchable on the
internet... and someone may find it interesting.
On Sun, Jan 12, 2014 at 2:29 PM, camden lindsay <
[email protected]> wrote:
> Hello-
> I am trying to do some network troubleshooting on a system an intel 6235
> and iwlwifi.
>
> I have two routers; a buffalo wzr-hp-ag300h, and a tp-link wdr3600.
>
> One is noted as being 2t2r in the wiki (tp-link) the other is not (buffalo)
>
> I can't seem to find any indication in iw list on the routers of what
> their stream count capabilities are.
>
> I also can't seem to find any information on the client as to how many
> streams it is connected with.
>
> I have debugfs enabled on client and routers.
>
> Can anyone point out where this information can be found?
>
>
> thank you
> Camden
>
>
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users