Skip to content

Commit fe83c15

Browse files
krish2718rlubos
authored andcommitted
nrf_wifi: Add a flag to indicate waiting for reg change event
To determine if the regulatory change event is solicited or not, this flag is handy. Helps fix #79733. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 1182a26 commit fe83c15

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

nrf_wifi/fw_if/umac_if/inc/fmac_structs_common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ struct nrf_wifi_fmac_dev_ctx {
170170
unsigned int reg_chan_count;
171171
/** Regulatory channel attributes */
172172
struct nrf_wifi_get_reg_chn_info *reg_chan_info;
173+
/** To determine if event is solicited or not */
174+
bool waiting_for_reg_event;
173175
/** Regulatory set status */
174176
int reg_set_status;
175177
/** Regulatory change event */

nrf_wifi/fw_if/umac_if/src/fmac_api_common.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,8 @@ enum nrf_wifi_status nrf_wifi_fmac_set_reg(struct nrf_wifi_fmac_dev_ctx *fmac_de
810810
}
811811

812812
fmac_dev_ctx->reg_set_status = false;
813+
fmac_dev_ctx->waiting_for_reg_event = true;
814+
813815
status = umac_cmd_cfg(fmac_dev_ctx,
814816
set_reg_cmd,
815817
sizeof(*set_reg_cmd));
@@ -834,6 +836,7 @@ enum nrf_wifi_status nrf_wifi_fmac_set_reg(struct nrf_wifi_fmac_dev_ctx *fmac_de
834836
goto out;
835837
}
836838

839+
fmac_dev_ctx->waiting_for_reg_event = false;
837840
reg_change = fmac_dev_ctx->reg_change;
838841

839842
if (reg_change->intr != exp_initiator) {

0 commit comments

Comments
 (0)