/* setup rate table in uCode return rate_n_flags as used in the table  */
static u32 rs_update_rate_tbl(struct iwl_priv *priv, struct iwl_lq_sta *lq_sta, struct iwl_scale_tbl_info *tbl, int index, u8 is_green)
/* setup rate table in uCode return rate_n_flags as used in the table  */
static u32 rs_update_rate_tbl(struct iwl_priv *priv, struct iwl_lq_sta *lq_sta, struct iwl_scale_tbl_info *tbl, int index, u8 is_green)
{
	u32 rate;
	rate = rate_n_flags_from_tbl(priv, tbl, index, is_green);
	rs_fill_link_cmd(priv, lq_sta, rate);
	iwl_send_lq_cmd(priv, &lq_sta->lq, CMD_ASYNC);
	return rate;
}