summaryrefslogtreecommitdiffstats
path: root/net/wireless/mesh.c
diff options
context:
space:
mode:
authorMarco Porsch <marco.porsch@etit.tu-chemnitz.de>2012-12-03 11:23:37 +0100
committerJohannes Berg <johannes.berg@intel.com>2012-12-03 11:24:49 +0100
commitda29d2a5780d80857773d7776b7603a449b0b6e0 (patch)
tree10433b1fbab3c9806d2016d822e3d68266fbf701 /net/wireless/mesh.c
parent246dc3fddf4a01bb47dd56215a48dd2b270520db (diff)
downloadop-kernel-dev-da29d2a5780d80857773d7776b7603a449b0b6e0.zip
op-kernel-dev-da29d2a5780d80857773d7776b7603a449b0b6e0.tar.gz
cfg80211: fix channel error on mesh join
Fix an error on mesh join when no channel has been explicitly set beforehand. Also remove a double semicolon. Signed-off-by: Marco Porsch <marco.porsch@etit.tu-chemnitz.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/mesh.c')
-rw-r--r--net/wireless/mesh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/mesh.c b/net/wireless/mesh.c
index 3ee5a72..f9d6ce5 100644
--- a/net/wireless/mesh.c
+++ b/net/wireless/mesh.c
@@ -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))
OpenPOWER on IntegriCloud