libertas: convert CMD_802_11_DEAUTHENTICATE to a direct command
and remove DISASSOCIATE because it's not in any of the specs and has never been used. Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
87c8c72d53
commit
191bb40e72
@@ -986,7 +986,9 @@ static int lbs_mesh_set_freq(struct net_device *dev,
|
||||
if (fwrq->m != priv->curbssparams.channel) {
|
||||
lbs_deb_wext("mesh channel change forces eth disconnect\n");
|
||||
if (priv->mode == IW_MODE_INFRA)
|
||||
lbs_send_deauthentication(priv);
|
||||
lbs_cmd_80211_deauthenticate(priv,
|
||||
priv->curbssparams.bssid,
|
||||
WLAN_REASON_DEAUTH_LEAVING);
|
||||
else if (priv->mode == IW_MODE_ADHOC)
|
||||
lbs_stop_adhoc_network(priv);
|
||||
}
|
||||
|
Reference in New Issue
Block a user