700-160mhz_interop_workaround.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. VHT: Add an interoperability workaround for 80+80 and 160 MHz channels
  2. Number of deployed 80 MHz capable VHT stations that do not support 80+80
  3. and 160 MHz bandwidths seem to misbehave when trying to connect to an AP
  4. that advertises 80+80 or 160 MHz channel bandwidth in the VHT Operation
  5. element. To avoid such issues with deployed devices, modify the design
  6. based on newly proposed IEEE 802.11 standard changes.
  7. This allows poorly implemented VHT 80 MHz stations to connect with the
  8. AP in 80 MHz mode. 80+80 and 160 MHz capable stations need to support
  9. the new workaround mechanism to allow full bandwidth to be used.
  10. However, there are more or less no impacted station with 80+80/160
  11. capability deployed.
  12. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
  13. diff --git a/src/ap/ieee802_11_vht.c b/src/ap/ieee802_11_vht.c
  14. index 3236016..e923094 100644
  15. --- a/src/ap/ieee802_11_vht.c
  16. +++ b/src/ap/ieee802_11_vht.c
  17. @@ -82,6 +82,27 @@ u8 * hostapd_eid_vht_operation(struct hostapd_data *hapd, u8 *eid)
  18. oper->vht_op_info_chwidth = hapd->iconf->vht_oper_chwidth;
  19. + if (hapd->iconf->vht_oper_chwidth == 2) {
  20. + /*
  21. + * Convert 160 MHz channel width to new style as interop
  22. + * workaround.
  23. + */
  24. + oper->vht_op_info_chwidth = 1;
  25. + oper->vht_op_info_chan_center_freq_seg1_idx =
  26. + oper->vht_op_info_chan_center_freq_seg0_idx;
  27. + if (hapd->iconf->channel <
  28. + hapd->iconf->vht_oper_centr_freq_seg0_idx)
  29. + oper->vht_op_info_chan_center_freq_seg0_idx -= 8;
  30. + else
  31. + oper->vht_op_info_chan_center_freq_seg0_idx += 8;
  32. + } else if (hapd->iconf->vht_oper_chwidth == 3) {
  33. + /*
  34. + * Convert 80+80 MHz channel width to new style as interop
  35. + * workaround.
  36. + */
  37. + oper->vht_op_info_chwidth = 1;
  38. + }
  39. +
  40. /* VHT Basic MCS set comes from hw */
  41. /* Hard code 1 stream, MCS0-7 is a min Basic VHT MCS rates */
  42. oper->vht_basic_mcs_set = host_to_le16(0xfffc);