qcacld-3.0: Refactor hdd_register_wext()

In addition to actually registering with wireless extensions,
hdd_register_wext() initializes data structures associated with the
STA's roam profile. Since roam profile initialization is independent
of wireless extensions, refactor all of the roam profile
initialization code out of hdd_register_wext(), and relocate it to
wlan_hdd_assoc.c.

Change-Id: Ibd19b02373694b169ba9c122c812a264e6b8a63b
CRs-Fixed: 2212067
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index c052e68..5ee98ac 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -4029,12 +4029,9 @@
 	sme_set_pdev_ht_vht_ies(hdd_ctx->hHal, hdd_ctx->config->enable2x2);
 	sme_set_vdev_ies_per_band(hdd_ctx->hHal, adapter->session_id);
 
-	/* Register wireless extensions */
-	status = hdd_register_wext(adapter->dev);
-	if (QDF_IS_STATUS_ERROR(status)) {
-		hdd_err("failed to register wireless extensions: %d", status);
-		goto error_register_wext;
-	}
+	hdd_roam_profile_init(adapter);
+	hdd_register_wext(adapter->dev);
+
 	hdd_conn_set_connection_state(adapter, eConnectionState_NotConnected);
 
 	qdf_mem_set(sta_ctx->conn_info.staId,
@@ -4093,7 +4090,6 @@
 	hdd_deinit_tx_rx(adapter);
 error_init_txrx:
 	hdd_unregister_wext(adapter->dev);
-error_register_wext:
 	QDF_BUG(!hdd_vdev_destroy(adapter));
 
 	return status;