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é <benjamin@zephyrproject.org>
This commit is contained in:
parent
0f60efe217
commit
8d6316c5b7
1 changed files with 2 additions and 2 deletions
|
@ -852,7 +852,7 @@ err:
|
|||
|
||||
#ifndef CONFIG_NRF70_RADIO_TEST
|
||||
#ifdef CONFIG_NET_L2_WIFI_MGMT
|
||||
static struct wifi_mgmt_ops nrf_wifi_mgmt_ops = {
|
||||
static const struct wifi_mgmt_ops nrf_wifi_mgmt_ops = {
|
||||
.scan = nrf_wifi_disp_scan_zep,
|
||||
#ifdef CONFIG_NET_STATISTICS_WIFI
|
||||
.get_stats = nrf_wifi_stats_get,
|
||||
|
@ -881,7 +881,7 @@ static struct wifi_mgmt_ops nrf_wifi_mgmt_ops = {
|
|||
|
||||
|
||||
#ifdef CONFIG_NRF70_STA_MODE
|
||||
static struct zep_wpa_supp_dev_ops wpa_supp_ops = {
|
||||
static const struct zep_wpa_supp_dev_ops wpa_supp_ops = {
|
||||
.init = nrf_wifi_wpa_supp_dev_init,
|
||||
.deinit = nrf_wifi_wpa_supp_dev_deinit,
|
||||
.scan2 = nrf_wifi_wpa_supp_scan2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue