/* Copy active data rates based on adapter mode and status.  */
static void copy_active_data_rates(struct lbs_private *priv, u8 *rates)
/* Copy active data rates based on adapter mode and status.  */
static void copy_active_data_rates(struct lbs_private *priv, u8 *rates)
{
	lbs_deb_enter(LBS_DEB_WEXT);
	if ((priv->connect_status != LBS_CONNECTED) &&
		(priv->mesh_connect_status != LBS_CONNECTED))
		memcpy(rates, lbs_bg_rates, MAX_RATES);
	else
		memcpy(rates, priv->curbssparams.rates, MAX_RATES);
	lbs_deb_leave(LBS_DEB_WEXT);
}