wifi: mac80211: align ieee80211_mle_get_bss_param_ch_cnt()
authorJohannes Berg <johannes.berg@intel.com>
Fri, 16 Feb 2024 11:54:31 +0000 (13:54 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Feb 2024 14:19:04 +0000 (15:19 +0100)
commit6bd14aee0bd25525ab229acd9bfe536dd8642364
treed48be49dde6f302420d2751bcc1039314cb08e19
parent6b756efcd9f01a7f972c0aa0da1c4f84658ba156
wifi: mac80211: align ieee80211_mle_get_bss_param_ch_cnt()

Align the prototype of ieee80211_mle_get_bss_param_ch_cnt()
to also take a u8 * like the other functions, and make it
return -1 when the field isn't found, so that mac80211 can
check that instead of explicitly open-coding the check.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240216135047.583309181bc3.Ia61cb0b4fc034d5ac8fcfaf6f6fb2e115fadafe7@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/ieee80211.h
net/mac80211/mlme.c