diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index ec3e66d064d2..dd1e6c67de68 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -810,13 +810,20 @@ struct hdd_netif_queue_history { struct hdd_adapter_s { - void *pHddCtx; + /* Magic cookie for adapter sanity verification. Note that this + * needs to be at the beginning of the private data structure so + * that it will exists at the beginning of dev->priv and hence + * will always be in mapped memory + */ + uint32_t magic; - device_mode_t device_mode; + void *pHddCtx; /** Handle to the network device */ struct net_device *dev; + device_mode_t device_mode; + /** IPv4 notifier callback for handling ARP offload on change in IP */ struct work_struct ipv4NotifierWorkQueue; #ifdef WLAN_NS_OFFLOAD @@ -936,8 +943,6 @@ struct hdd_adapter_s { #endif uint8_t addr_filter_pattern; - /* Magic cookie for adapter sanity verification */ - uint32_t magic; bool higherDtimTransition; bool survey_idx;