wpa_supplicant: Pass in operating class for channel validity checks

This is needed to allow the 6 GHz operating classes to be compared
against the driver support channels since the channel numbers are not
really unique identifiers of a channel even within a single band.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2019-10-09 18:49:42 +03:00 committed by Jouni Malinen
parent 3fa701b5ce
commit 89450024a8
3 changed files with 51 additions and 29 deletions

View file

@ -1423,8 +1423,8 @@ enum chan_allowed {
NOT_ALLOWED, NO_IR, ALLOWED
};
enum chan_allowed verify_channel(struct hostapd_hw_modes *mode, u8 channel,
u8 bw);
enum chan_allowed verify_channel(struct hostapd_hw_modes *mode, u8 op_class,
u8 channel, u8 bw);
size_t wpas_supp_op_class_ie(struct wpa_supplicant *wpa_s,
struct wpa_ssid *ssid,
int freq, u8 *pos, size_t len);