include FH/DS parameters element in probe response frames
This commit is contained in:
parent
4bc0e754ee
commit
b83d21129e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121178
@ -363,6 +363,7 @@ ieee80211_send_mgmt(struct ieee80211com *ic, struct ieee80211_node *ni,
|
||||
* [2] cabability information
|
||||
* [tlv] ssid
|
||||
* [tlv] supported rates
|
||||
* [tlv] parameter set (FH/DS)
|
||||
* [tlv] parameter set (IBSS)
|
||||
* [tlv] extended supported rates
|
||||
*/
|
||||
@ -370,6 +371,7 @@ ieee80211_send_mgmt(struct ieee80211com *ic, struct ieee80211_node *ni,
|
||||
8 + 2 + 2 + 2
|
||||
+ 2 + ni->ni_esslen
|
||||
+ 2 + IEEE80211_RATE_SIZE
|
||||
+ (ic->ic_phytype == IEEE80211_T_FH ? 7 : 3)
|
||||
+ 6
|
||||
+ 2 + (IEEE80211_RATE_MAXSIZE - IEEE80211_RATE_SIZE));
|
||||
if (m == NULL)
|
||||
@ -397,6 +399,22 @@ ieee80211_send_mgmt(struct ieee80211com *ic, struct ieee80211_node *ni,
|
||||
ic->ic_bss->ni_esslen);
|
||||
frm = ieee80211_add_rates(frm, &ic->ic_bss->ni_rates);
|
||||
|
||||
if (ic->ic_phytype == IEEE80211_T_FH) {
|
||||
*frm++ = IEEE80211_ELEMID_FHPARMS;
|
||||
*frm++ = 5;
|
||||
*frm++ = ni->ni_fhdwell & 0x00ff;
|
||||
*frm++ = (ni->ni_fhdwell >> 8) & 0x00ff;
|
||||
*frm++ = IEEE80211_FH_CHANSET(
|
||||
ieee80211_chan2ieee(ic, ni->ni_chan));
|
||||
*frm++ = IEEE80211_FH_CHANPAT(
|
||||
ieee80211_chan2ieee(ic, ni->ni_chan));
|
||||
*frm++ = ni->ni_fhindex;
|
||||
} else {
|
||||
*frm++ = IEEE80211_ELEMID_DSPARMS;
|
||||
*frm++ = 1;
|
||||
*frm++ = ieee80211_chan2ieee(ic, ni->ni_chan);
|
||||
}
|
||||
|
||||
if (ic->ic_opmode == IEEE80211_M_IBSS) {
|
||||
*frm++ = IEEE80211_ELEMID_IBSSPARMS;
|
||||
*frm++ = 2;
|
||||
|
Loading…
Reference in New Issue
Block a user