Re: Setting HT capabilities in net80211
- From: Alexander Egorenkov <egorenar@xxxxxxxxxxxxxx>
- Date: Sat, 13 Mar 2010 17:17:21 +0100
I have finally patched net80211 on my system and added HT extended
capabilities support.
Here are the patches.
I added a new variable to ieee80211com struct.
It seems that only the lowest 16 bit of ic_htcaps are used, an alternative
to a new variable would be to use the highest 16 bit of ic_htcaps.
Here is a code snippet from my driver which sets ic_htextcaps:
ic->ic_htextcaps = IEEE80211_HTCAP_MCSFBACK_UNSOL |
IEEE80211_HTCAP_HTC |
IEEE80211_HTCAP_RDR;
I also captured an association process with 802.11n AP and it seems the
capabilities were set right.
Alex.
On Thu, Mar 11, 2010 at 8:44 AM, Rui Paulo <rpaulo@xxxxxxxxxxx> wrote:
On 11 Mar 2010, at 16:32, Alexander Egorenkov wrote:
There are already constants defined in iee80211.h.
E.g. IEEE80211_HTCAP_MCSFBACK_UNSOL.
But the problem is that e.g. IEEE80211_HTCAP_MCSFBACK_UNSOL is equal to
0x0200
and the capabilty constant IEEE80211_HTCAP_RXSTBC_2STREAM has the same
value.
So we cannot use ic_htcap field for both capabilities because they will
overwrite each other.
But we can add a new field to ieee80211com struct like ic_htextcaps where
all the extended
HT capabilities can be set. And this new field can be checked in function
ieee80211_add_htcap_body.
I'm okay with this route.
Another option is to change the value of IEEE80211_HTCAP_MCSFBACK_UNSOL
and all other extended capability constant which conflict with normal HT
capability constants.
I think you don't want to do this because sooner or later you'll need
ic_htextcaps.
--
Rui Paulo
Attachment:
ieee80211_var.h.patch
Description: Binary data
Attachment:
ieee80211.c.patch
Description: Binary data
Attachment:
ieee80211_ht.c.patch
Description: Binary data
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Setting HT capabilities in net80211
- From: Rui Paulo
- Re: Setting HT capabilities in net80211
- References:
- Setting HT capabilities in net80211
- From: Alexander Egorenkov
- Re: Setting HT capabilities in net80211
- From: Sam Leffler
- Re: Setting HT capabilities in net80211
- From: Alexander Egorenkov
- Re: Setting HT capabilities in net80211
- From: Alexander Egorenkov
- Re: Setting HT capabilities in net80211
- From: Rui Paulo
- Setting HT capabilities in net80211
- Prev by Date: Re: ixgbe input errors at high data rates
- Next by Date: Re: kern/143046: [mxge] [panic] panics since mxge(4) update
- Previous by thread: Re: Setting HT capabilities in net80211
- Next by thread: Re: Setting HT capabilities in net80211
- Index(es):
Relevant Pages
|