diff options
Diffstat (limited to 'net/wireless/mesh.c')
| -rw-r--r-- | net/wireless/mesh.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net/wireless/mesh.c b/net/wireless/mesh.c index 0daaf72e1b81..30c49202ee4d 100644 --- a/net/wireless/mesh.c +++ b/net/wireless/mesh.c | |||
| @@ -162,6 +162,16 @@ int __cfg80211_join_mesh(struct cfg80211_registered_device *rdev, | |||
| 162 | setup->chandef.center_freq1 = setup->chandef.chan->center_freq; | 162 | setup->chandef.center_freq1 = setup->chandef.chan->center_freq; |
| 163 | } | 163 | } |
| 164 | 164 | ||
| 165 | /* | ||
| 166 | * check if basic rates are available otherwise use mandatory rates as | ||
| 167 | * basic rates | ||
| 168 | */ | ||
| 169 | if (!setup->basic_rates) { | ||
| 170 | struct ieee80211_supported_band *sband = | ||
| 171 | rdev->wiphy.bands[setup->chandef.chan->band]; | ||
| 172 | setup->basic_rates = ieee80211_mandatory_rates(sband); | ||
| 173 | } | ||
| 174 | |||
| 165 | if (!cfg80211_reg_can_beacon(&rdev->wiphy, &setup->chandef)) | 175 | if (!cfg80211_reg_can_beacon(&rdev->wiphy, &setup->chandef)) |
| 166 | return -EINVAL; | 176 | return -EINVAL; |
| 167 | 177 | ||
