HomeFreeBSD

rtw88: use #define for NL80211_BAND_2GHZ instead of hardcoded number

Description

rtw88: use #define for NL80211_BAND_2GHZ instead of hardcoded number

Use NL80211_BAND_2GHZ instead of a hard coded 0 as array index for the
band. While LinuxKPI provides a KPI compatibility some of these values
may not necessarily be KBI compatible (in this case they shoule be so
this is a NOP) and after all it is better style.

No functional change.

(cherry picked from commit 8aaefd0512daea0f9869cd2fe3cee9443d5fb6aa)

Details

Provenance
bzAuthored on Jan 13 2023, 1:05 AM
Parents
rGa96d4c86f1d4: iwlwifi: mark a declaration for a non-existent function
Branches
Unknown
Tags
Unknown