diff options
| -rw-r--r-- | net/mac80211/ibss.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index 531be040b9ae..27a39de89679 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c | |||
| @@ -823,6 +823,10 @@ ieee80211_ibss_process_chanswitch(struct ieee80211_sub_if_data *sdata, | |||
| 823 | if (err) | 823 | if (err) |
| 824 | return false; | 824 | return false; |
| 825 | 825 | ||
| 826 | /* channel switch is not supported, disconnect */ | ||
| 827 | if (!(sdata->local->hw.wiphy->flags & WIPHY_FLAG_HAS_CHANNEL_SWITCH)) | ||
| 828 | goto disconnect; | ||
| 829 | |||
| 826 | params.count = csa_ie.count; | 830 | params.count = csa_ie.count; |
| 827 | params.chandef = csa_ie.chandef; | 831 | params.chandef = csa_ie.chandef; |
| 828 | 832 | ||
