Ver Fonte

qcacld-3.0: Set add virtual interface flag for monitor interface

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

CRs-Fixed: 3247266
Change-Id: I69517052ae2aa71f5a903c4127f952cbe5f65e69
SACHIN AHUJA há 2 anos atrás
pai
commit
c021da7cd5
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      core/hdd/src/wlan_hdd_main.c

+ 2 - 0
core/hdd/src/wlan_hdd_main.c

@@ -19063,6 +19063,8 @@ wlan_hdd_add_monitor_check(struct hdd_context *hdd_ctx,
 						PACKET_CAPTURE_MODE_DISABLE)
 		wlan_hdd_del_p2p_interface(hdd_ctx);
 
+	params.is_add_virtual_iface = 1;
+
 	mon_adapter = hdd_open_adapter(hdd_ctx, QDF_MONITOR_MODE, name,
 				       wlan_hdd_get_intf_addr(
 				       hdd_ctx,