/* This function prepares the authenticate command. AUTHENTICATE only sets the authentication suite for future associations, as the firmware handles authentication internally during the ASSOCIATE command.  */
static int lbs_set_authentication(struct lbs_private *priv, u8 bssid[6], u8 auth)
/* This function prepares the authenticate command. AUTHENTICATE only sets the authentication suite for future associations, as the firmware handles authentication internally during the ASSOCIATE command.  */
static int lbs_set_authentication(struct lbs_private *priv, u8 bssid[6], u8 auth)
{
	struct cmd_ds_802_11_authenticate cmd;
	int ret = -1;
	lbs_deb_enter(LBS_DEB_JOIN);
	cmd.hdr.size = cpu_to_le16(sizeof(cmd));
	memcpy(cmd.bssid, bssid, ETH_ALEN);
	cmd.authtype = iw_auth_to_ieee_auth(auth);
	lbs_deb_join("AUTH_CMD: BSSID %pM, auth 0x%x\n", bssid, cmd.authtype);
	ret = lbs_cmd_with_response(priv, CMD_802_11_AUTHENTICATE, &cmd);
	lbs_deb_leave_args(LBS_DEB_JOIN, "ret %d", ret);
	return ret;
}