Przeglądaj źródła

qcacld-3.0: Added netdev print to debug

Currently driver does not have the interface info
in the stop ap and restart ap

Add netdev interface and event flag info
in __wlan_hdd_cfg80211_stop_ap and hdd_ssr_restart_sap

Change-Id: Ibb915f597923f864fbbda1bc92255df968bee815
CRs-Fixed: 3154052
Vinod Kumar Myadam 3 lat temu
rodzic
commit
dc16afb95c
2 zmienionych plików z 6 dodań i 3 usunięć
  1. 3 2
      core/hdd/src/wlan_hdd_hostapd.c
  2. 3 1
      core/hdd/src/wlan_hdd_power.c

+ 3 - 2
core/hdd/src/wlan_hdd_hostapd.c

@@ -6440,7 +6440,7 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
 	int ret;
 	mac_handle_t mac_handle;
 
-	hdd_enter();
+	hdd_enter_dev(dev);
 
 	ret = wlan_hdd_validate_context(hdd_ctx);
 	/*
@@ -6482,7 +6482,8 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
 	 * call during SSR case. Adapter gets cleaned up as part of SSR.
 	 */
 	clear_bit(SOFTAP_INIT_DONE, &adapter->event_flags);
-	hdd_debug("Device_mode %s(%d)",
+	hdd_debug("Event flags 0x%lx(%s) Device_mode %s(%d)",
+		  adapter->event_flags, (adapter->dev)->name,
 		  qdf_opmode_str(adapter->device_mode), adapter->device_mode);
 
 	/*

+ 3 - 1
core/hdd/src/wlan_hdd_power.c

@@ -1791,7 +1791,9 @@ static void hdd_ssr_restart_sap(struct hdd_context *hdd_ctx)
 					   NET_DEV_HOLD_SSR_RESTART_SAP) {
 		if (adapter->device_mode == QDF_SAP_MODE) {
 			if (test_bit(SOFTAP_INIT_DONE, &adapter->event_flags)) {
-				hdd_debug("Restart prev SAP session");
+				hdd_debug(
+				"Restart prev SAP session, event_flags 0x%lx(%s)",
+				adapter->event_flags, (adapter->dev)->name);
 				wlan_hdd_start_sap(adapter, true);
 			}
 		}