Add set STA Channel Width field to 1 when allowing HT40
This commit is contained in:
parent
a8d8410e1f
commit
cd587cceff
1 changed files with 4 additions and 2 deletions
|
@ -150,9 +150,11 @@ u8 * hostapd_eid_ht_operation(struct hostapd_data *hapd, u8 *eid)
|
||||||
oper->control_chan = hapd->iconf->channel;
|
oper->control_chan = hapd->iconf->channel;
|
||||||
oper->operation_mode = host_to_le16(hapd->iface->ht_op_mode);
|
oper->operation_mode = host_to_le16(hapd->iface->ht_op_mode);
|
||||||
if (hapd->iconf->secondary_channel == 1)
|
if (hapd->iconf->secondary_channel == 1)
|
||||||
oper->ht_param |= HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE;
|
oper->ht_param |= HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE |
|
||||||
|
HT_INFO_HT_PARAM_REC_TRANS_CHNL_WIDTH;
|
||||||
if (hapd->iconf->secondary_channel == -1)
|
if (hapd->iconf->secondary_channel == -1)
|
||||||
oper->ht_param |= HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW;
|
oper->ht_param |= HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW |
|
||||||
|
HT_INFO_HT_PARAM_REC_TRANS_CHNL_WIDTH;
|
||||||
|
|
||||||
pos += sizeof(*oper);
|
pos += sizeof(*oper);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue