qcacld-3.0: Move nan pdev declaration to right place

pdev is declared in nan_enable_req after a variable-size array.
Place the pdev declaration before the array to avoid corruption
while copying contents to the buffer.

Change-Id: I92766c40909bcecaed5f1eb6e2f015447f3c8221
CRs-Fixed: 3060146
This commit is contained in:
Srinivas Dasari
2021-10-21 08:48:02 +05:30
committed by Madan Koyyalamudi
vanhempi ded1caab8a
commit 742eed43d1

Näytä tiedosto

@@ -610,16 +610,16 @@ struct nan_disable_req {
* @psoc: Pointer to the psoc object
* @social_chan_2g_freq: Social channel in 2G band for the NAN Discovery
* @social_chan_5g_freq: Social channel in 5G band for the NAN Discovery
* @params: NAN request structure containing message for the target
* @pdev: Pointer to the pdev object
* @params: NAN request structure containing message for the target
*/
struct nan_enable_req {
struct wlan_objmgr_psoc *psoc;
uint32_t social_chan_2g_freq;
uint32_t social_chan_5g_freq;
struct wlan_objmgr_pdev *pdev;
/* Variable length, do not add anything after this */
struct nan_msg_params params;
struct wlan_objmgr_pdev *pdev;
};
/**