Set Short Slot Time subfield in Capability field, if ieee80211com.ic_caps
commitf96f54d7b45d55dc5f88332e1fccbc3c5996cd14
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 18 Mar 2007 05:35:54 +0000 (18 05:35 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 18 Mar 2007 05:35:54 +0000 (18 05:35 +0000)
tree626069226a534a2f3d2b41ecae96877591155343
parent848caf3def6913d9c6760a95b5b4efab3e13cc9f
Set Short Slot Time subfield in Capability field, if ieee80211com.ic_caps
has IEEE80211_C_SHSLOT and the current channel is a 2GHz one, as according
to IEEE Std 802.11g-2003 subclause 7.3.1.4:

"STAs shall set the Short Slot Time subfield to 1 in transmitted Association
 Request and Reassociation Request MMPDUs when the MIB attribute
 dot11ShortSlotTimeOptionImplemented and dot11ShortSlotTimeOptionEnabled are
 true. ..."

For us "dot11ShortSlotTimeOptionImplemented" is IEEE80211_C_SHSLOT bit in
ieee80211com.ic_caps and dot11ShortSlotTimeOptionEnabled is always true.

In the original way, we will be counted as long slot time STA, if the BSS
that we are joining temporarily turns off short slot time, since some already
joined STAs are incapable of short slot time.  After our joining, even if all
long slot time STAs leave, BSS still can't use short slot time, because we
misinformed AP that we are incapable of short slot time in association request.
sys/netproto/802_11/wlan/ieee80211_output.c