qcacld-3.0: Reset wifi flag when wifi is turned off with static driver

qcacld-2.0 to qcacld-3.0 propagation

In case of static driver, upon wifi turn off module exit
doesn't happens. Module exit helps in cleanup of static memory.

If driver is loaded statically, at the time of driver unload,
wiphy flags are not cleared because of static memory.
Fix it by removing channel type as static.

Change-Id: I198ea87da3d160716a8c1c04b879ecb7c6f63180
CRs-Fixed: 944530
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index 56a054c..d19c0a6 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -4191,6 +4191,7 @@
 
 	wlan_hdd_deinit_tx_rx_histogram(hdd_ctx);
 	wiphy_unregister(wiphy);
+	wlan_hdd_cfg80211_deinit(wiphy);
 
 	hdd_context_destroy(hdd_ctx);
 }
@@ -6350,6 +6351,7 @@
 
 err_wiphy_unregister:
 	wiphy_unregister(hdd_ctx->wiphy);
+	wlan_hdd_cfg80211_deinit(hdd_ctx->wiphy);
 
 err_cds_close:
 	status = cds_sched_close(hdd_ctx->pcds_context);