diff options
Diffstat (limited to 'net/wireless/mesh.c')
-rw-r--r-- | net/wireless/mesh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/mesh.c b/net/wireless/mesh.c index 12b5a570a306..3ee5a7282283 100644 --- a/net/wireless/mesh.c +++ b/net/wireless/mesh.c | |||
@@ -146,7 +146,7 @@ int __cfg80211_join_mesh(struct cfg80211_registered_device *rdev, | |||
146 | if (!setup->chandef.chan) | 146 | if (!setup->chandef.chan) |
147 | return -EINVAL; | 147 | return -EINVAL; |
148 | 148 | ||
149 | setup->chandef._type = NL80211_CHAN_NO_HT; | 149 | setup->chandef.width = NL80211_CHAN_WIDTH_20_NOHT;; |
150 | } | 150 | } |
151 | 151 | ||
152 | if (!cfg80211_reg_can_beacon(&rdev->wiphy, &setup->chandef)) | 152 | if (!cfg80211_reg_can_beacon(&rdev->wiphy, &setup->chandef)) |
@@ -198,7 +198,7 @@ int cfg80211_set_mesh_channel(struct cfg80211_registered_device *rdev, | |||
198 | * compatible with 802.11 mesh. | 198 | * compatible with 802.11 mesh. |
199 | */ | 199 | */ |
200 | if (rdev->ops->libertas_set_mesh_channel) { | 200 | if (rdev->ops->libertas_set_mesh_channel) { |
201 | if (chandef->_type != NL80211_CHAN_NO_HT) | 201 | if (chandef->width != NL80211_CHAN_WIDTH_20_NOHT) |
202 | return -EINVAL; | 202 | return -EINVAL; |
203 | 203 | ||
204 | if (!netif_running(wdev->netdev)) | 204 | if (!netif_running(wdev->netdev)) |