diff options
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r-- | drivers/net/wireless/libertas/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index 3c13619ffa15..5e4c4e41098a 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c | |||
@@ -291,7 +291,9 @@ static ssize_t lbs_rtap_set(struct device *dev, | |||
291 | if (priv->infra_open || priv->mesh_open) | 291 | if (priv->infra_open || priv->mesh_open) |
292 | return -EBUSY; | 292 | return -EBUSY; |
293 | if (priv->mode == IW_MODE_INFRA) | 293 | if (priv->mode == IW_MODE_INFRA) |
294 | lbs_send_deauthentication(priv); | 294 | lbs_cmd_80211_deauthenticate(priv, |
295 | priv->curbssparams.bssid, | ||
296 | WLAN_REASON_DEAUTH_LEAVING); | ||
295 | else if (priv->mode == IW_MODE_ADHOC) | 297 | else if (priv->mode == IW_MODE_ADHOC) |
296 | lbs_stop_adhoc_network(priv); | 298 | lbs_stop_adhoc_network(priv); |
297 | lbs_add_rtap(priv); | 299 | lbs_add_rtap(priv); |