Commit b45acf2
wifi: rtw89: regd: refactor init/setup flow and prototype
The regulatory and wiphy setup should be done in rtw89_regd_setup(). And,
what rtw89_regd_init() should do is to initialize target regulatory domain
(regd), if and only if one is programmed in efuse. Since HW is registered
after rtw89_regd_setup() and before rtw89_regd_init(), do not fill fields
of regulatory in rtw89_regd_init(). So, move the regulatory->reg_6ghz_power
assignment into rtw89_regd_setup().
Besides, rtw89_regd_notifier is assigned in rtw89_regd_setup() instead of
rtw89_regd_init(). To reduce confusion, stop passing rtw89_regd_notifier to
rtw89_regd_init(). And, rename rtw89_regd_init() to rtw89_regd_init_hint().
Signed-off-by: Zong-Zhe Yang <[email protected]>
Signed-off-by: Ping-Ke Shih <[email protected]>
Link: https://patch.msgid.link/[email protected]1 parent 79a36fc commit b45acf2
3 files changed
+9
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5303 | 5303 | | |
5304 | 5304 | | |
5305 | 5305 | | |
5306 | | - | |
| 5306 | + | |
5307 | 5307 | | |
5308 | 5308 | | |
5309 | 5309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7163 | 7163 | | |
7164 | 7164 | | |
7165 | 7165 | | |
7166 | | - | |
7167 | | - | |
7168 | | - | |
| 7166 | + | |
7169 | 7167 | | |
7170 | 7168 | | |
7171 | 7169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
598 | 601 | | |
599 | 602 | | |
600 | 603 | | |
| 604 | + | |
| 605 | + | |
601 | 606 | | |
602 | 607 | | |
603 | 608 | | |
| |||
608 | 613 | | |
609 | 614 | | |
610 | 615 | | |
611 | | - | |
612 | | - | |
613 | | - | |
| 616 | + | |
614 | 617 | | |
615 | | - | |
616 | 618 | | |
617 | 619 | | |
618 | 620 | | |
619 | 621 | | |
620 | | - | |
621 | | - | |
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
| |||
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
| 741 | + | |
741 | 742 | | |
742 | 743 | | |
743 | 744 | | |
| |||
0 commit comments