Introduce DFS CAC time as a regd param, configured per REG_RULE and set per channel in cfg80211. DFS CAC time is close connected with regulatory database configuration. Instead of using hardcoded values, get DFS CAC time form regulatory database. Pass DFS CAC time to user mode (mainly for iw reg get, iw list, iw info). Allow setting DFS CAC time via CRDA. Add support for internal regulatory database.
Showing the changes to include/uapi/linux (1 of 6 files). Show all
Unified · Split
| @@ -2335,6 +2335,7 @@ enum nl80211_band_attr { · 2334 unmodified lines | ||
| 2335 | 2335 | * @NL80211_FREQUENCY_ATTR_NO_160MHZ: any 160 MHz (but not 80+80) channel |
| 2336 | 2336 | * using this channel as the primary or any of the secondary channels |
| 2337 | 2337 | * isn't possible |
| 2338 | + * @NL80211_FREQUENCY_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds. | |
| 2338 | 2339 | * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number |
| 2339 | 2340 | * currently defined |
| 2340 | 2341 | * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use |
| @@ -2353,6 +2354,7 @@ enum nl80211_frequency_attr { · 12 unmodified lines | ||
| 2353 | 2354 | NL80211_FREQUENCY_ATTR_NO_HT40_PLUS, |
| 2354 | 2355 | NL80211_FREQUENCY_ATTR_NO_80MHZ, |
| 2355 | 2356 | NL80211_FREQUENCY_ATTR_NO_160MHZ, |
| 2357 | + NL80211_FREQUENCY_ATTR_DFS_CAC_TIME, | |
| 2356 | 2358 | |
| 2357 | 2359 | /* keep last */ |
| 2358 | 2360 | __NL80211_FREQUENCY_ATTR_AFTER_LAST, |
| @@ -2449,6 +2451,8 @@ enum nl80211_reg_type { · 90 unmodified lines | ||
| 2449 | 2451 | * If you don't have one then don't send this. |
| 2450 | 2452 | * @NL80211_ATTR_POWER_RULE_MAX_EIRP: the maximum allowed EIRP for |
| 2451 | 2453 | * a given frequency range. The value is in mBm (100 * dBm). |
| 2454 | + * @NL80211_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds. | |
| 2455 | + * If not present or 0 default CAC time will be used. | |
| 2452 | 2456 | * @NL80211_REG_RULE_ATTR_MAX: highest regulatory rule attribute number |
| 2453 | 2457 | * currently defined |
| 2454 | 2458 | * @__NL80211_REG_RULE_ATTR_AFTER_LAST: internal use |
| @@ -2464,6 +2468,8 @@ enum nl80211_reg_rule_attr { · 9 unmodified lines | ||
| 2464 | 2468 | NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN, |
| 2465 | 2469 | NL80211_ATTR_POWER_RULE_MAX_EIRP, |
| 2466 | 2470 | |
| 2471 | + NL80211_ATTR_DFS_CAC_TIME, | |
| 2472 | + | |
| 2467 | 2473 | /* keep last */ |
| 2468 | 2474 | __NL80211_REG_RULE_ATTR_AFTER_LAST, |
| 2469 | 2475 | NL80211_REG_RULE_ATTR_MAX = __NL80211_REG_RULE_ATTR_AFTER_LAST - 1 |