/* Stop and Ad-Hoc network and exit Ad-Hoc mode.  */
int lbs_adhoc_stop(struct lbs_private *priv)
/* Stop and Ad-Hoc network and exit Ad-Hoc mode.  */
int lbs_adhoc_stop(struct lbs_private *priv)
{
	struct cmd_ds_802_11_ad_hoc_stop cmd;
	int ret;
	lbs_deb_enter(LBS_DEB_JOIN);
	memset(&cmd, 0, sizeof (cmd));
	cmd.hdr.size = cpu_to_le16 (sizeof (cmd));
	ret = lbs_cmd_with_response(priv, CMD_802_11_AD_HOC_STOP, &cmd);
	lbs_mac_event_disconnected(priv);
	lbs_deb_leave_args(LBS_DEB_ASSOC, "ret %d", ret);
	return ret;
}