wlan: Fix missing sta_id hash attach in ap mode

Sta_id attach to mac address hash is expected to be done after AP mode
initialization. But it is missing in few scenarios. This is resulting
in STA connection failure to SAP.

To resolve this, attach sta_id to mac address hash as part of ap mode
initialization.

Change-Id: If039b201af9806873aa6751caf7bb455275760d6
CRs-Fixed: 2825333
diff --git a/CORE/HDD/src/wlan_hdd_hostapd.c b/CORE/HDD/src/wlan_hdd_hostapd.c
index c2d917e..8115be8 100644
--- a/CORE/HDD/src/wlan_hdd_hostapd.c
+++ b/CORE/HDD/src/wlan_hdd_hostapd.c
@@ -5556,6 +5556,15 @@
                                 ini_cfg->apEndChannelNum,
                                 ini_cfg->apOperatingBand);
     }
+
+    status = hdd_sta_id_hash_attach(pAdapter);
+    if (VOS_STATUS_SUCCESS != status)
+    {
+	    hddLog(VOS_TRACE_LEVEL_ERROR,
+			    FL("Failed to initialize hash for AP"));
+	    goto error_wmm_init;
+    }
+
    /* Action frame registered in one adapter which will
     * applicable to all interfaces
     */