Skip to content

Commit 8d6316c

Browse files
kartbenhenrikbrixandersen
authored andcommitted
drivers: nrf_wifi: put driver ops in flash
Add const qualifiers to the driver ops to save on RAM usage. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 0f60efe commit 8d6316c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/wifi/nrf_wifi/src/fmac_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ static int nrf_wifi_drv_main_zep(const struct device *dev)
852852

853853
#ifndef CONFIG_NRF70_RADIO_TEST
854854
#ifdef CONFIG_NET_L2_WIFI_MGMT
855-
static struct wifi_mgmt_ops nrf_wifi_mgmt_ops = {
855+
static const struct wifi_mgmt_ops nrf_wifi_mgmt_ops = {
856856
.scan = nrf_wifi_disp_scan_zep,
857857
#ifdef CONFIG_NET_STATISTICS_WIFI
858858
.get_stats = nrf_wifi_stats_get,
@@ -881,7 +881,7 @@ static struct wifi_mgmt_ops nrf_wifi_mgmt_ops = {
881881

882882

883883
#ifdef CONFIG_NRF70_STA_MODE
884-
static struct zep_wpa_supp_dev_ops wpa_supp_ops = {
884+
static const struct zep_wpa_supp_dev_ops wpa_supp_ops = {
885885
.init = nrf_wifi_wpa_supp_dev_init,
886886
.deinit = nrf_wifi_wpa_supp_dev_deinit,
887887
.scan2 = nrf_wifi_wpa_supp_scan2,

0 commit comments

Comments
 (0)