wlan: Update right hardware capability in initialization

During initialization driver updates support for both 2.4GHz and
5GHz support irrespective of the hardware capability. Due to
which user sees wrong capability indicated when 'iw phy' command
is run.

Update  right capability during cfg80211 initialization.

Change-Id: Id817f604ccb7c25200bcf58972eae6e9e01934e4
CRs-Fixed: 619678
(cherry picked from commit c278e7bf46a0a23babbe2e8547fcc5f74aedddb8)
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 2b8b6d8..f83b494 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -701,6 +701,8 @@
                                )
 {
     int i, j;
+    hdd_context_t *pHddCtx = wiphy_priv(wiphy);
+
     ENTER();
 
     /* Now bind the underlying wlan device with wiphy */
@@ -814,7 +816,10 @@
     }
 
    wiphy->bands[IEEE80211_BAND_2GHZ] = &wlan_hdd_band_2_4_GHZ;
-   wiphy->bands[IEEE80211_BAND_5GHZ] = &wlan_hdd_band_5_GHZ;
+   if (true == hdd_is_5g_supported(pHddCtx))
+   {
+       wiphy->bands[IEEE80211_BAND_5GHZ] = &wlan_hdd_band_5_GHZ;
+   }
 
    for (i = 0; i < IEEE80211_NUM_BANDS; i++)
    {