diff options
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 05f3a313db88..70a5d262815f 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -2189,6 +2189,9 @@ static int ieee80211_start_roc_work(struct ieee80211_local *local, | |||
2189 | 2189 | ||
2190 | lockdep_assert_held(&local->mtx); | 2190 | lockdep_assert_held(&local->mtx); |
2191 | 2191 | ||
2192 | if (local->use_chanctx && !local->ops->remain_on_channel) | ||
2193 | return -EOPNOTSUPP; | ||
2194 | |||
2192 | roc = kzalloc(sizeof(*roc), GFP_KERNEL); | 2195 | roc = kzalloc(sizeof(*roc), GFP_KERNEL); |
2193 | if (!roc) | 2196 | if (!roc) |
2194 | return -ENOMEM; | 2197 | return -ENOMEM; |