]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - wpa_supplicant/rrm.c
wpa_supplicant: Pass in operating class for channel validity checks
[thirdparty/hostap.git] / wpa_supplicant / rrm.c
index e0723df213d8a4e006412a72607c8abe3e3bfe25..b78ff10581ef85f055a4df8f69a31143c7b9cf48 100644 (file)
@@ -528,7 +528,8 @@ static int * wpas_add_channels(const struct oper_class_map *op,
        next_freq = freqs;
        for  (i = 0; i < num_chans; i++) {
                u8 chan = channels ? channels[i] : op->min_chan + i * op->inc;
-               enum chan_allowed res = verify_channel(mode, chan, op->bw);
+               enum chan_allowed res = verify_channel(mode, op->op_class, chan,
+                                                      op->bw);
 
                if (res == NOT_ALLOWED || (res == NO_IR && active))
                        continue;