diff options
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r-- | net/wireless/nl80211.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 89dd3793e03c..89aa9e781d10 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -351,12 +351,12 @@ static int nl80211_send_wiphy(struct sk_buff *msg, u32 pid, u32 seq, int flags, | |||
351 | 351 | ||
352 | #undef CMD | 352 | #undef CMD |
353 | 353 | ||
354 | if (dev->ops->connect) { | 354 | if (dev->ops->connect || dev->ops->auth) { |
355 | i++; | 355 | i++; |
356 | NLA_PUT_U32(msg, i, NL80211_CMD_CONNECT); | 356 | NLA_PUT_U32(msg, i, NL80211_CMD_CONNECT); |
357 | } | 357 | } |
358 | 358 | ||
359 | if (dev->ops->disconnect) { | 359 | if (dev->ops->disconnect || dev->ops->deauth) { |
360 | i++; | 360 | i++; |
361 | NLA_PUT_U32(msg, i, NL80211_CMD_DISCONNECT); | 361 | NLA_PUT_U32(msg, i, NL80211_CMD_DISCONNECT); |
362 | } | 362 | } |