Commit ebb3ca3b authored by Luca Coelho's avatar Luca Coelho Committed by Johannes Berg

cfg80211: use BIT_ULL in cfg80211_parse_mbssid_data()

The seen_indices variable is u64 and in other parts of the code we
assume mbssid_index_ie[2] can be up to 45, so we should use the 64-bit
versions of BIT, namely, BIT_ULL().
Reported-by: default avatarDan Carpented <dan.carpenter@oracle.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 56357234
...@@ -1601,12 +1601,12 @@ static void cfg80211_parse_mbssid_data(struct wiphy *wiphy, ...@@ -1601,12 +1601,12 @@ static void cfg80211_parse_mbssid_data(struct wiphy *wiphy,
continue; continue;
} }
if (seen_indices & BIT(mbssid_index_ie[2])) if (seen_indices & BIT_ULL(mbssid_index_ie[2]))
/* We don't support legacy split of a profile */ /* We don't support legacy split of a profile */
net_dbg_ratelimited("Partial info for BSSID index %d\n", net_dbg_ratelimited("Partial info for BSSID index %d\n",
mbssid_index_ie[2]); mbssid_index_ie[2]);
seen_indices |= BIT(mbssid_index_ie[2]); seen_indices |= BIT_ULL(mbssid_index_ie[2]);
non_tx_data->bssid_index = mbssid_index_ie[2]; non_tx_data->bssid_index = mbssid_index_ie[2];
non_tx_data->max_bssid_indicator = elem->data[0]; non_tx_data->max_bssid_indicator = elem->data[0];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment