]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/wireless/util.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[linux.git] / net / wireless / util.c
index 2a89db5f2db7af79ecc55cc9a34999f6d74071bc..4293f980e9c44b69b76280f33e8c27a198e2ce4e 100644 (file)
@@ -1456,7 +1456,7 @@ bool ieee80211_chandef_to_operating_class(struct cfg80211_chan_def *chandef,
                                          u8 *op_class)
 {
        u8 vht_opclass;
-       u16 freq = chandef->center_freq1;
+       u32 freq = chandef->center_freq1;
 
        if (freq >= 2412 && freq <= 2472) {
                if (chandef->width > NL80211_CHAN_WIDTH_40)