@@ -1610,9 +1610,9 @@ static void rs_stay_in_table(struct iwl_lq_sta *lq_sta, bool force_search)
1610
1610
static void rs_update_rate_tbl (struct iwl_mvm * mvm ,
1611
1611
struct ieee80211_sta * sta ,
1612
1612
struct iwl_lq_sta * lq_sta ,
1613
- struct rs_rate * rate )
1613
+ struct iwl_scale_tbl_info * tbl )
1614
1614
{
1615
- rs_fill_lq_cmd (mvm , sta , lq_sta , rate );
1615
+ rs_fill_lq_cmd (mvm , sta , lq_sta , & tbl -> rate );
1616
1616
iwl_mvm_send_lq_cmd (mvm , & lq_sta -> lq , false);
1617
1617
}
1618
1618
@@ -2142,7 +2142,7 @@ static void rs_rate_scale_perform(struct iwl_mvm *mvm,
2142
2142
rate -> type = LQ_NONE ;
2143
2143
lq_sta -> search_better_tbl = 0 ;
2144
2144
tbl = & (lq_sta -> lq_info [lq_sta -> active_tbl ]);
2145
- rs_update_rate_tbl (mvm , sta , lq_sta , & tbl -> rate );
2145
+ rs_update_rate_tbl (mvm , sta , lq_sta , tbl );
2146
2146
}
2147
2147
return ;
2148
2148
}
@@ -2305,7 +2305,7 @@ static void rs_rate_scale_perform(struct iwl_mvm *mvm,
2305
2305
/* Replace uCode's rate table for the destination station. */
2306
2306
if (update_lq ) {
2307
2307
tbl -> rate .index = index ;
2308
- rs_update_rate_tbl (mvm , sta , lq_sta , & tbl -> rate );
2308
+ rs_update_rate_tbl (mvm , sta , lq_sta , tbl );
2309
2309
}
2310
2310
2311
2311
rs_stay_in_table (lq_sta , false);
@@ -2352,8 +2352,7 @@ static void rs_rate_scale_perform(struct iwl_mvm *mvm,
2352
2352
2353
2353
rs_dump_rate (mvm , & tbl -> rate ,
2354
2354
"Switch to SEARCH TABLE:" );
2355
- rs_fill_lq_cmd (mvm , sta , lq_sta , & tbl -> rate );
2356
- iwl_mvm_send_lq_cmd (mvm , & lq_sta -> lq , false);
2355
+ rs_update_rate_tbl (mvm , sta , lq_sta , tbl );
2357
2356
} else {
2358
2357
done_search = 1 ;
2359
2358
}
0 commit comments