qcacld-3.0: Update num_iftype_akm_suites wiphy param

Currently, wiphy->num_iftype_akm_suites is updated with
QDF_ARRAY_SIZE(wlan_hdd_akm_suites)/size of structure but
macro QDF_ARRAY_SIZE itself is providing number of elements
of array with (sizeof(_arr) / sizeof((_arr)[0])).

Fix is to use QDF_ARRAY_SIZE(wlan_hdd_akm_suites) instead
of using QDF_ARRAY_SIZE(wlan_hdd_akm_suites)/
sizeof(struct wiphy_iftype_akm_suites).

Change-Id: Ia4abcc84a7d568e76a71df40fd9f3688b348bd70
CRs-Fixed: 2664434
This commit is contained in:
sheenam monga
2020-04-15 12:02:10 +05:30
committed by nshrivas
parent 7977909a18
commit 9b1b00019e

View File

@@ -14837,8 +14837,7 @@ static void
wlan_hdd_update_akm_suit_info(struct wiphy *wiphy)
{
wiphy->iftype_akm_suites = wlan_hdd_akm_suites;
wiphy->num_iftype_akm_suites = QDF_ARRAY_SIZE(wlan_hdd_akm_suites) /
sizeof(struct wiphy_iftype_akm_suites);
wiphy->num_iftype_akm_suites = QDF_ARRAY_SIZE(wlan_hdd_akm_suites);
}
#else
static void