mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
cfg80211: add 6GHz in code handling array with NUM_NL80211_BANDS entries
In nl80211.c there is a policy for all bands in NUM_NL80211_BANDS and in trace.h there is a callback trace for multicast rates which is per band in NUM_NL80211_BANDS. Both need to be extended for the new NL80211_BAND_6GHZ. Reviewed-by: Pieter-Paul Giesberts <[email protected]> Reviewed-by: Leon Zegers <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
852f04620e
commit
e548a1c36b
2 changed files with 3 additions and 1 deletions
|
|
@ -677,6 +677,7 @@ static const struct nla_policy
|
|||
nl80211_match_band_rssi_policy[NUM_NL80211_BANDS] = {
|
||||
[NL80211_BAND_2GHZ] = { .type = NLA_S32 },
|
||||
[NL80211_BAND_5GHZ] = { .type = NLA_S32 },
|
||||
[NL80211_BAND_6GHZ] = { .type = NLA_S32 },
|
||||
[NL80211_BAND_60GHZ] = { .type = NLA_S32 },
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -2446,10 +2446,11 @@ TRACE_EVENT(rdev_set_mcast_rate,
|
|||
sizeof(int) * NUM_NL80211_BANDS);
|
||||
),
|
||||
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", "
|
||||
"mcast_rates [2.4GHz=0x%x, 5.2GHz=0x%x, 60GHz=0x%x]",
|
||||
"mcast_rates [2.4GHz=0x%x, 5.2GHz=0x%x, 6GHz=0x%x, 60GHz=0x%x]",
|
||||
WIPHY_PR_ARG, NETDEV_PR_ARG,
|
||||
__entry->mcast_rate[NL80211_BAND_2GHZ],
|
||||
__entry->mcast_rate[NL80211_BAND_5GHZ],
|
||||
__entry->mcast_rate[NL80211_BAND_6GHZ],
|
||||
__entry->mcast_rate[NL80211_BAND_60GHZ])
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue