aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-rs.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-rs.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
index 7cdbcfe483f3..a99512807f63 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
@@ -2453,13 +2453,15 @@ static void rs_get_rate(void *priv_r, struct ieee80211_sta *sta, void *priv_sta,
2453 2453
2454 if ((priv->iw_mode == NL80211_IFTYPE_ADHOC) && 2454 if ((priv->iw_mode == NL80211_IFTYPE_ADHOC) &&
2455 !lq_sta->ibss_sta_added) { 2455 !lq_sta->ibss_sta_added) {
2456 u8 sta_id = iwl_find_station(priv, hdr->addr1); 2456 u8 sta_id = priv->cfg->ops->smgmt->find_station(priv,
2457 hdr->addr1);
2457 2458
2458 if (sta_id == IWL_INVALID_STATION) { 2459 if (sta_id == IWL_INVALID_STATION) {
2459 IWL_DEBUG_RATE(priv, "LQ: ADD station %pM\n", 2460 IWL_DEBUG_RATE(priv, "LQ: ADD station %pM\n",
2460 hdr->addr1); 2461 hdr->addr1);
2461 sta_id = iwl_add_station_flags(priv, hdr->addr1, 2462 sta_id = priv->cfg->ops->smgmt->add_station_ht(priv,
2462 0, CMD_ASYNC, NULL); 2463 hdr->addr1, 0,
2464 CMD_ASYNC, NULL);
2463 } 2465 }
2464 if ((sta_id != IWL_INVALID_STATION)) { 2466 if ((sta_id != IWL_INVALID_STATION)) {
2465 lq_sta->lq.sta_id = sta_id; 2467 lq_sta->lq.sta_id = sta_id;
@@ -2526,15 +2528,17 @@ static void rs_rate_init(void *priv_r, struct ieee80211_supported_band *sband,
2526 2528
2527 lq_sta->ibss_sta_added = 0; 2529 lq_sta->ibss_sta_added = 0;
2528 if (priv->iw_mode == NL80211_IFTYPE_AP) { 2530 if (priv->iw_mode == NL80211_IFTYPE_AP) {
2529 u8 sta_id = iwl_find_station(priv, sta->addr); 2531 u8 sta_id = priv->cfg->ops->smgmt->find_station(priv,
2532 sta->addr);
2530 2533
2531 /* for IBSS the call are from tasklet */ 2534 /* for IBSS the call are from tasklet */
2532 IWL_DEBUG_RATE(priv, "LQ: ADD station %pM\n", sta->addr); 2535 IWL_DEBUG_RATE(priv, "LQ: ADD station %pM\n", sta->addr);
2533 2536
2534 if (sta_id == IWL_INVALID_STATION) { 2537 if (sta_id == IWL_INVALID_STATION) {
2535 IWL_DEBUG_RATE(priv, "LQ: ADD station %pM\n", sta->addr); 2538 IWL_DEBUG_RATE(priv, "LQ: ADD station %pM\n", sta->addr);
2536 sta_id = iwl_add_station_flags(priv, sta->addr, 2539 sta_id = priv->cfg->ops->smgmt->add_station_ht(priv,
2537 0, CMD_ASYNC, NULL); 2540 sta->addr, 0,
2541 CMD_ASYNC, NULL);
2538 } 2542 }
2539 if ((sta_id != IWL_INVALID_STATION)) { 2543 if ((sta_id != IWL_INVALID_STATION)) {
2540 lq_sta->lq.sta_id = sta_id; 2544 lq_sta->lq.sta_id = sta_id;