From cd587cceffe3f1df0a2c51edf70712f58e66fc63 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 24 Nov 2008 16:44:17 +0200 Subject: [PATCH] Add set STA Channel Width field to 1 when allowing HT40 --- hostapd/ieee802_11.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hostapd/ieee802_11.c b/hostapd/ieee802_11.c index aa493fea0..23cc9eb48 100644 --- a/hostapd/ieee802_11.c +++ b/hostapd/ieee802_11.c @@ -150,9 +150,11 @@ u8 * hostapd_eid_ht_operation(struct hostapd_data *hapd, u8 *eid) oper->control_chan = hapd->iconf->channel; oper->operation_mode = host_to_le16(hapd->iface->ht_op_mode); 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) - 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);