diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965-rs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-rs.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c index f3638607d641..7b74481f5282 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c | |||
@@ -1737,10 +1737,11 @@ static struct ieee80211_rate *rs_get_rate(void *priv_rate, | |||
1737 | 1737 | ||
1738 | if ((priv->iw_mode == IEEE80211_IF_TYPE_IBSS) && !lq->ibss_sta_added) { | 1738 | if ((priv->iw_mode == IEEE80211_IF_TYPE_IBSS) && !lq->ibss_sta_added) { |
1739 | u8 sta_id = iwl_hw_find_station(priv, hdr->addr1); | 1739 | u8 sta_id = iwl_hw_find_station(priv, hdr->addr1); |
1740 | DECLARE_MAC_BUF(mac); | ||
1740 | 1741 | ||
1741 | if (sta_id == IWL_INVALID_STATION) { | 1742 | if (sta_id == IWL_INVALID_STATION) { |
1742 | IWL_DEBUG_RATE("LQ: ADD station " MAC_FMT "\n", | 1743 | IWL_DEBUG_RATE("LQ: ADD station %s\n", |
1743 | MAC_ARG(hdr->addr1)); | 1744 | print_mac(mac, hdr->addr1)); |
1744 | sta_id = iwl_add_station(priv, | 1745 | sta_id = iwl_add_station(priv, |
1745 | hdr->addr1, 0, CMD_ASYNC); | 1746 | hdr->addr1, 0, CMD_ASYNC); |
1746 | } | 1747 | } |
@@ -1811,14 +1812,16 @@ static void rs_rate_init(void *priv_rate, void *priv_sta, | |||
1811 | crl->ibss_sta_added = 0; | 1812 | crl->ibss_sta_added = 0; |
1812 | if (priv->iw_mode == IEEE80211_IF_TYPE_AP) { | 1813 | if (priv->iw_mode == IEEE80211_IF_TYPE_AP) { |
1813 | u8 sta_id = iwl_hw_find_station(priv, sta->addr); | 1814 | u8 sta_id = iwl_hw_find_station(priv, sta->addr); |
1815 | DECLARE_MAC_BUF(mac); | ||
1816 | |||
1814 | /* for IBSS the call are from tasklet */ | 1817 | /* for IBSS the call are from tasklet */ |
1815 | IWL_DEBUG_HT("LQ: ADD station " MAC_FMT " \n", | 1818 | IWL_DEBUG_HT("LQ: ADD station %s\n", |
1816 | MAC_ARG(sta->addr)); | 1819 | print_mac(mac, sta->addr)); |
1817 | 1820 | ||
1818 | if (sta_id == IWL_INVALID_STATION) { | 1821 | if (sta_id == IWL_INVALID_STATION) { |
1819 | IWL_DEBUG_RATE("LQ: ADD station " MAC_FMT "\n", | 1822 | IWL_DEBUG_RATE("LQ: ADD station %s\n", |
1820 | MAC_ARG(sta->addr)); | 1823 | print_mac(mac, sta->addr)); |
1821 | sta_id = iwl_add_station(priv, | 1824 | sta_id = iwl_add_station(priv, |
1822 | sta->addr, 0, CMD_ASYNC); | 1825 | sta->addr, 0, CMD_ASYNC); |
1823 | } | 1826 | } |
1824 | if ((sta_id != IWL_INVALID_STATION)) { | 1827 | if ((sta_id != IWL_INVALID_STATION)) { |