Bladeren bron

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
Srinivas Dasari 3 jaren geleden
bovenliggende
commit
742eed43d1
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      components/nan/core/inc/nan_public_structs.h

+ 2 - 2
components/nan/core/inc/nan_public_structs.h

@@ -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;
 };
 
 /**