|
@@ -81,6 +81,26 @@ u8 * hostapd_eid_vht_operation(struct hostapd_data *hapd, u8 *eid)
|
|
|
hapd->iconf->vht_oper_centr_freq_seg1_idx;
|
|
|
|
|
|
oper->vht_op_info_chwidth = hapd->iconf->vht_oper_chwidth;
|
|
|
+ if (hapd->iconf->vht_oper_chwidth == 2) {
|
|
|
+ /*
|
|
|
+ * Convert 160 MHz channel width to new style as interop
|
|
|
+ * workaround.
|
|
|
+ */
|
|
|
+ oper->vht_op_info_chwidth = 1;
|
|
|
+ oper->vht_op_info_chan_center_freq_seg1_idx =
|
|
|
+ oper->vht_op_info_chan_center_freq_seg0_idx;
|
|
|
+ if (hapd->iconf->channel <
|
|
|
+ hapd->iconf->vht_oper_centr_freq_seg0_idx)
|
|
|
+ oper->vht_op_info_chan_center_freq_seg0_idx -= 8;
|
|
|
+ else
|
|
|
+ oper->vht_op_info_chan_center_freq_seg0_idx += 8;
|
|
|
+ } else if (hapd->iconf->vht_oper_chwidth == 3) {
|
|
|
+ /*
|
|
|
+ * Convert 80+80 MHz channel width to new style as interop
|
|
|
+ * workaround.
|
|
|
+ */
|
|
|
+ oper->vht_op_info_chwidth = 1;
|
|
|
+ }
|
|
|
|
|
|
/* VHT Basic MCS set comes from hw */
|
|
|
/* Hard code 1 stream, MCS0-7 is a min Basic VHT MCS rates */
|