LinuxKPI: 802.11: fix a -Wenum-compare warning

We are asserting that two values from different enums are the same.
gcc warns about these.  Cast the values to (int) to avoid the warning.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
This commit is contained in:
Bjoern A. Zeeb 2023-04-19 21:40:18 +00:00
parent b2dcb84868
commit f369f10dd8

View File

@ -1784,7 +1784,7 @@ ieee80211_action_contains_tpc(struct sk_buff *skb)
return (false);
/* Check that it is TPC Report or Link Measurement Report? */
KASSERT(IEEE80211_ACTION_SM_TPCREP == IEEE80211_ACTION_RADIO_MEASUREMENT_LMREP,
KASSERT((int)IEEE80211_ACTION_SM_TPCREP == (int)IEEE80211_ACTION_RADIO_MEASUREMENT_LMREP,
("%s: SM_TPCREP %d != RADIO_MEASUREMENT_LMREP %d\n", __func__,
IEEE80211_ACTION_SM_TPCREP, IEEE80211_ACTION_RADIO_MEASUREMENT_LMREP));
if (mgmt->u.action.u.tpc_report.spec_mgmt != IEEE80211_ACTION_SM_TPCREP)