Skip to content

Commit 6841616

Browse files
VivekUppundajfischer-no
authored andcommitted
nrf_wifi: Add CONFIG_NRF700X_RAW_DATA_RX check in validity check API
This change adds the CONFIG_NRF700X_RAW_DATA_RX check for monitor mode to prevent monitor mode from being configured when driver is not compiled for the same Signed-off-by: Vivekananda Uppunda <[email protected]>
1 parent c965a54 commit 6841616

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nrf_wifi/fw_if/umac_if/src/fmac_util.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,12 @@ enum nrf_wifi_status nrf_wifi_check_mode_validity(unsigned char mode)
353353
*/
354354
if ((mode ^ NRF_WIFI_STA_MODE) == 0) {
355355
return NRF_WIFI_STATUS_SUCCESS;
356-
} else if ((mode ^ NRF_WIFI_MONITOR_MODE) == 0) {
356+
}
357+
#ifdef CONFIG_NRF700X_RAW_DATA_RX
358+
else if ((mode ^ NRF_WIFI_MONITOR_MODE) == 0) {
357359
return NRF_WIFI_STATUS_SUCCESS;
358360
}
361+
#endif /* CONFIG_NRF700X_RAW_DATA_RX */
359362
return NRF_WIFI_STATUS_FAIL;
360363
}
361364

0 commit comments

Comments
 (0)