001-nl80211_h_sync.patch 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. --- a/nl80211.h
  2. +++ b/nl80211.h
  3. @@ -1761,6 +1761,9 @@ enum nl80211_commands {
  4. * @NL80211_ATTR_REG_INDOOR: flag attribute, if set indicates that the device
  5. * is operating in an indoor environment.
  6. *
  7. + * @NL80211_ATTR_WIPHY_ANTENNA_GAIN: Configured antenna gain. Used to reduce
  8. + * transmit power to stay within regulatory limits. u32, dBi.
  9. + *
  10. * @NUM_NL80211_ATTR: total number of nl80211_attrs available
  11. * @NL80211_ATTR_MAX: highest attribute number currently defined
  12. * @__NL80211_ATTR_AFTER_LAST: internal use
  13. @@ -2130,6 +2133,8 @@ enum nl80211_attrs {
  14. NL80211_ATTR_REG_INDOOR,
  15. + NL80211_ATTR_WIPHY_ANTENNA_GAIN,
  16. +
  17. /* add attributes here, update the policy in nl80211.c */
  18. __NL80211_ATTR_AFTER_LAST,
  19. @@ -2620,16 +2625,17 @@ enum nl80211_band_attr {
  20. * an indoor surroundings, i.e., it is connected to AC power (and not
  21. * through portable DC inverters) or is under the control of a master
  22. * that is acting as an AP and is connected to AC power.
  23. - * @NL80211_FREQUENCY_ATTR_GO_CONCURRENT: GO operation is allowed on this
  24. + * @NL80211_FREQUENCY_ATTR_IR_CONCURRENT: IR operation is allowed on this
  25. * channel if it's connected concurrently to a BSS on the same channel on
  26. * the 2 GHz band or to a channel in the same UNII band (on the 5 GHz
  27. - * band), and IEEE80211_CHAN_RADAR is not set. Instantiating a GO on a
  28. - * channel that has the GO_CONCURRENT attribute set can be done when there
  29. - * is a clear assessment that the device is operating under the guidance of
  30. - * an authorized master, i.e., setting up a GO while the device is also
  31. - * connected to an AP with DFS and radar detection on the UNII band (it is
  32. - * up to user-space, i.e., wpa_supplicant to perform the required
  33. - * verifications)
  34. + * band), and IEEE80211_CHAN_RADAR is not set. Instantiating a GO or TDLS
  35. + * off-channel on a channel that has the IR_CONCURRENT attribute set can be
  36. + * done when there is a clear assessment that the device is operating under
  37. + * the guidance of an authorized master, i.e., setting up a GO or TDLS
  38. + * off-channel while the device is also connected to an AP with DFS and
  39. + * radar detection on the UNII band (it is up to user-space, i.e.,
  40. + * wpa_supplicant to perform the required verifications). Using this
  41. + * attribute for IR is disallowed for master interfaces (IBSS, AP).
  42. * @NL80211_FREQUENCY_ATTR_NO_20MHZ: 20 MHz operation is not allowed
  43. * on this channel in current regulatory domain.
  44. * @NL80211_FREQUENCY_ATTR_NO_10MHZ: 10 MHz operation is not allowed
  45. @@ -2641,7 +2647,7 @@ enum nl80211_band_attr {
  46. * See https://apps.fcc.gov/eas/comments/GetPublishedDocument.html?id=327&tn=528122
  47. * for more information on the FCC description of the relaxations allowed
  48. * by NL80211_FREQUENCY_ATTR_INDOOR_ONLY and
  49. - * NL80211_FREQUENCY_ATTR_GO_CONCURRENT.
  50. + * NL80211_FREQUENCY_ATTR_IR_CONCURRENT.
  51. */
  52. enum nl80211_frequency_attr {
  53. __NL80211_FREQUENCY_ATTR_INVALID,
  54. @@ -2659,7 +2665,7 @@ enum nl80211_frequency_attr {
  55. NL80211_FREQUENCY_ATTR_NO_160MHZ,
  56. NL80211_FREQUENCY_ATTR_DFS_CAC_TIME,
  57. NL80211_FREQUENCY_ATTR_INDOOR_ONLY,
  58. - NL80211_FREQUENCY_ATTR_GO_CONCURRENT,
  59. + NL80211_FREQUENCY_ATTR_IR_CONCURRENT,
  60. NL80211_FREQUENCY_ATTR_NO_20MHZ,
  61. NL80211_FREQUENCY_ATTR_NO_10MHZ,
  62. @@ -2672,6 +2678,8 @@ enum nl80211_frequency_attr {
  63. #define NL80211_FREQUENCY_ATTR_PASSIVE_SCAN NL80211_FREQUENCY_ATTR_NO_IR
  64. #define NL80211_FREQUENCY_ATTR_NO_IBSS NL80211_FREQUENCY_ATTR_NO_IR
  65. #define NL80211_FREQUENCY_ATTR_NO_IR NL80211_FREQUENCY_ATTR_NO_IR
  66. +#define NL80211_FREQUENCY_ATTR_GO_CONCURRENT \
  67. + NL80211_FREQUENCY_ATTR_IR_CONCURRENT
  68. /**
  69. * enum nl80211_bitrate_attr - bitrate attributes
  70. @@ -2830,7 +2838,7 @@ enum nl80211_sched_scan_match_attr {
  71. * @NL80211_RRF_AUTO_BW: maximum available bandwidth should be calculated
  72. * base on contiguous rules and wider channels will be allowed to cross
  73. * multiple contiguous/overlapping frequency ranges.
  74. - * @NL80211_RRF_GO_CONCURRENT: See &NL80211_FREQUENCY_ATTR_GO_CONCURRENT
  75. + * @NL80211_RRF_IR_CONCURRENT: See &NL80211_FREQUENCY_ATTR_IR_CONCURRENT
  76. * @NL80211_RRF_NO_HT40MINUS: channels can't be used in HT40- operation
  77. * @NL80211_RRF_NO_HT40PLUS: channels can't be used in HT40+ operation
  78. * @NL80211_RRF_NO_80MHZ: 80MHz operation not allowed
  79. @@ -2847,7 +2855,7 @@ enum nl80211_reg_rule_flags {
  80. NL80211_RRF_NO_IR = 1<<7,
  81. __NL80211_RRF_NO_IBSS = 1<<8,
  82. NL80211_RRF_AUTO_BW = 1<<11,
  83. - NL80211_RRF_GO_CONCURRENT = 1<<12,
  84. + NL80211_RRF_IR_CONCURRENT = 1<<12,
  85. NL80211_RRF_NO_HT40MINUS = 1<<13,
  86. NL80211_RRF_NO_HT40PLUS = 1<<14,
  87. NL80211_RRF_NO_80MHZ = 1<<15,
  88. @@ -2859,6 +2867,7 @@ enum nl80211_reg_rule_flags {
  89. #define NL80211_RRF_NO_IR NL80211_RRF_NO_IR
  90. #define NL80211_RRF_NO_HT40 (NL80211_RRF_NO_HT40MINUS |\
  91. NL80211_RRF_NO_HT40PLUS)
  92. +#define NL80211_RRF_GO_CONCURRENT NL80211_RRF_IR_CONCURRENT
  93. /* For backport compatibility with older userspace */
  94. #define NL80211_RRF_NO_IR_ALL (NL80211_RRF_NO_IR | __NL80211_RRF_NO_IBSS)