Jelajahi Sumber

qcacld-3.0: Set add virtual interface flag during pre cac

Due to Kernel 5.15+ upgrade, the correct kernel function must be used
to register netdevice. Hence, set the add virtual interface flag in
order to properly call cfg80211_register_netdevice().

Change-Id: I1fb0407dc8cb4858881b81d6cb5d4c280b3f9981
CRs-Fixed: 3192543
Alan Chen 2 tahun lalu
induk
melakukan
4e491e5f35
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      core/hdd/src/wlan_hdd_sap_cond_chan_switch.c

+ 1 - 0
core/hdd/src/wlan_hdd_sap_cond_chan_switch.c

@@ -341,6 +341,7 @@ static int __wlan_hdd_request_pre_cac(struct hdd_context *hdd_ctx,
 		 * feature announcement to not use this temporary interface for
 		 * any activity from user space.
 		 */
+		params.is_add_virtual_iface = 1;
 		pre_cac_adapter = hdd_open_adapter(hdd_ctx, QDF_SAP_MODE,
 						   SAP_PRE_CAC_IFNAME, mac_addr,
 						   NET_NAME_UNKNOWN, true,