]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/wireless/mesh.c
Merge branch 'for-3.8/drivers' of git://git.kernel.dk/linux-block
[karo-tx-linux.git] / net / wireless / mesh.c
index 3ee5a72822839fc945dcad821a24af0defcb5854..f9d6ce5cfabbaebfc202f2d0290d8b1f0fbbc314 100644 (file)
@@ -146,7 +146,8 @@ int __cfg80211_join_mesh(struct cfg80211_registered_device *rdev,
                if (!setup->chandef.chan)
                        return -EINVAL;
 
-               setup->chandef.width = NL80211_CHAN_WIDTH_20_NOHT;;
+               setup->chandef.width = NL80211_CHAN_WIDTH_20_NOHT;
+               setup->chandef.center_freq1 = setup->chandef.chan->center_freq;
        }
 
        if (!cfg80211_reg_can_beacon(&rdev->wiphy, &setup->chandef))