]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Correctly initialise the 2-chain antenna mask in the link quality table.
authoradrian <adrian@FreeBSD.org>
Wed, 13 Nov 2013 07:09:00 +0000 (07:09 +0000)
committeradrian <adrian@FreeBSD.org>
Wed, 13 Nov 2013 07:09:00 +0000 (07:09 +0000)
commitbbc934705aa7e4fab75f3d6bf64167bf4d843925
tree41d5675e79991f9017722181c2b1f3cbf63066ce
parent7a6ad5e1339681dda3ba55722307143b09685038
Correctly initialise the 2-chain antenna mask in the link quality table.

The previous code simply hard-coded IWN_ANT_AB which is only correct for
some of the NICs.

Now, if the NIC is a 1-stream TX, you need to set IWN_ANT_AB and _not_
just a single antenna.  The Intel 5100 firmware panics the moment the
link quality table is updated.

So!

* no secondary antenna? Set it to IWN_ANT_AB;
* two-stream device? Transmit on the full transmit antenna configuration.

Tested:

* Intel 5100, STA
* Intel 2200 (eadler)

Obtained from: Linux iwlwifi
sys/dev/iwn/if_iwn.c