Commit 15a8f2f
[brcmfmac] Fix regulatory domain handling to reset bands properly
Currently, we ignore the default country in the reg notifier.
We also register a custom regulatory domain, which is set
as the default.
As a result, the chip is likely to be set to the correct country,
but the regulatory domain will not match it.
When the regulatory notifier is then called, we see the countries
are the same and do not change anything, even though the domain
is wrong.
This patch forces us to reset the bands on the first country change
even if the chip is already set to that country.
We also restore the original band info before reconstructing channel
info, as the new regdom power limits may be higher than what is
currently set.
Signed-off-by: Daniel Berlin <dberlin@dberlin.org>1 parent a9f3258 commit 15a8f2f
2 files changed
Lines changed: 33 additions & 6 deletions
Lines changed: 31 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7275 | 7275 | | |
7276 | 7276 | | |
7277 | 7277 | | |
| 7278 | + | |
| 7279 | + | |
| 7280 | + | |
| 7281 | + | |
7278 | 7282 | | |
7279 | | - | |
| 7283 | + | |
| 7284 | + | |
| 7285 | + | |
| 7286 | + | |
7280 | 7287 | | |
7281 | 7288 | | |
| 7289 | + | |
7282 | 7290 | | |
7283 | | - | |
| 7291 | + | |
| 7292 | + | |
| 7293 | + | |
| 7294 | + | |
7284 | 7295 | | |
7285 | 7296 | | |
| 7297 | + | |
7286 | 7298 | | |
7287 | | - | |
| 7299 | + | |
| 7300 | + | |
| 7301 | + | |
| 7302 | + | |
7288 | 7303 | | |
7289 | 7304 | | |
| 7305 | + | |
7290 | 7306 | | |
7291 | 7307 | | |
7292 | 7308 | | |
| |||
8746 | 8762 | | |
8747 | 8763 | | |
8748 | 8764 | | |
8749 | | - | |
8750 | | - | |
8751 | | - | |
| 8765 | + | |
| 8766 | + | |
| 8767 | + | |
| 8768 | + | |
| 8769 | + | |
| 8770 | + | |
| 8771 | + | |
| 8772 | + | |
| 8773 | + | |
| 8774 | + | |
| 8775 | + | |
8752 | 8776 | | |
8753 | 8777 | | |
8754 | 8778 | | |
| |||
8815 | 8839 | | |
8816 | 8840 | | |
8817 | 8841 | | |
| 8842 | + | |
8818 | 8843 | | |
8819 | 8844 | | |
8820 | 8845 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
353 | 354 | | |
354 | 355 | | |
355 | 356 | | |
| |||
380 | 381 | | |
381 | 382 | | |
382 | 383 | | |
| 384 | + | |
383 | 385 | | |
384 | 386 | | |
385 | 387 | | |
| |||
0 commit comments