Quellcode durchsuchen

qcacld-3.0: Add debug log for netdev flags

Add debug log to check the issue about: scan done event
is dropped when it sends to kernel.

Change-Id: I6b06b8bb6ef809eb4399b352d048d703bebdab5d
CRs-Fixed: 3364789
Paul Zhang vor 2 Jahren
Ursprung
Commit
02f965077b
2 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. 2 1
      core/hdd/src/wlan_hdd_main.c
  2. 2 0
      core/hdd/src/wlan_hdd_object_manager.c

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

@@ -744,7 +744,8 @@ static int __hdd_netdev_notifier_call(struct net_device *net_dev,
 		return NOTIFY_DONE;
 	}
 
-	hdd_debug("%s New Net Device State = %lu", net_dev->name, state);
+	hdd_debug("%s New Net Device State = %lu, flags 0x%x",
+		  net_dev->name, state, net_dev->flags);
 
 	switch (state) {
 	case NETDEV_REGISTER:

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

@@ -137,6 +137,8 @@ static int hdd_check_internal_netdev_state(struct net_device *netdev)
 	if (!adapter)
 		return false;
 
+	hdd_debug("netdev name %s, netdev flags 0x%x, event_flags %lu",
+		  netdev->name, netdev->flags, adapter->event_flags);
 	if (test_bit(DEVICE_IFACE_OPENED, &adapter->event_flags) &&
 	    (netdev->flags & IFF_UP))
 		return true;