diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-lib.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-lib.c | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c index 67b55c5fa0d2..e77f91380a4a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c | |||
@@ -53,73 +53,73 @@ static void iwlagn_count_tx_err_status(struct iwl_priv *priv, u16 status) | |||
53 | 53 | ||
54 | switch (status) { | 54 | switch (status) { |
55 | case TX_STATUS_POSTPONE_DELAY: | 55 | case TX_STATUS_POSTPONE_DELAY: |
56 | priv->_agn.reply_tx_stats.pp_delay++; | 56 | priv->reply_tx_stats.pp_delay++; |
57 | break; | 57 | break; |
58 | case TX_STATUS_POSTPONE_FEW_BYTES: | 58 | case TX_STATUS_POSTPONE_FEW_BYTES: |
59 | priv->_agn.reply_tx_stats.pp_few_bytes++; | 59 | priv->reply_tx_stats.pp_few_bytes++; |
60 | break; | 60 | break; |
61 | case TX_STATUS_POSTPONE_BT_PRIO: | 61 | case TX_STATUS_POSTPONE_BT_PRIO: |
62 | priv->_agn.reply_tx_stats.pp_bt_prio++; | 62 | priv->reply_tx_stats.pp_bt_prio++; |
63 | break; | 63 | break; |
64 | case TX_STATUS_POSTPONE_QUIET_PERIOD: | 64 | case TX_STATUS_POSTPONE_QUIET_PERIOD: |
65 | priv->_agn.reply_tx_stats.pp_quiet_period++; | 65 | priv->reply_tx_stats.pp_quiet_period++; |
66 | break; | 66 | break; |
67 | case TX_STATUS_POSTPONE_CALC_TTAK: | 67 | case TX_STATUS_POSTPONE_CALC_TTAK: |
68 | priv->_agn.reply_tx_stats.pp_calc_ttak++; | 68 | priv->reply_tx_stats.pp_calc_ttak++; |
69 | break; | 69 | break; |
70 | case TX_STATUS_FAIL_INTERNAL_CROSSED_RETRY: | 70 | case TX_STATUS_FAIL_INTERNAL_CROSSED_RETRY: |
71 | priv->_agn.reply_tx_stats.int_crossed_retry++; | 71 | priv->reply_tx_stats.int_crossed_retry++; |
72 | break; | 72 | break; |
73 | case TX_STATUS_FAIL_SHORT_LIMIT: | 73 | case TX_STATUS_FAIL_SHORT_LIMIT: |
74 | priv->_agn.reply_tx_stats.short_limit++; | 74 | priv->reply_tx_stats.short_limit++; |
75 | break; | 75 | break; |
76 | case TX_STATUS_FAIL_LONG_LIMIT: | 76 | case TX_STATUS_FAIL_LONG_LIMIT: |
77 | priv->_agn.reply_tx_stats.long_limit++; | 77 | priv->reply_tx_stats.long_limit++; |
78 | break; | 78 | break; |
79 | case TX_STATUS_FAIL_FIFO_UNDERRUN: | 79 | case TX_STATUS_FAIL_FIFO_UNDERRUN: |
80 | priv->_agn.reply_tx_stats.fifo_underrun++; | 80 | priv->reply_tx_stats.fifo_underrun++; |
81 | break; | 81 | break; |
82 | case TX_STATUS_FAIL_DRAIN_FLOW: | 82 | case TX_STATUS_FAIL_DRAIN_FLOW: |
83 | priv->_agn.reply_tx_stats.drain_flow++; | 83 | priv->reply_tx_stats.drain_flow++; |
84 | break; | 84 | break; |
85 | case TX_STATUS_FAIL_RFKILL_FLUSH: | 85 | case TX_STATUS_FAIL_RFKILL_FLUSH: |
86 | priv->_agn.reply_tx_stats.rfkill_flush++; | 86 | priv->reply_tx_stats.rfkill_flush++; |
87 | break; | 87 | break; |
88 | case TX_STATUS_FAIL_LIFE_EXPIRE: | 88 | case TX_STATUS_FAIL_LIFE_EXPIRE: |
89 | priv->_agn.reply_tx_stats.life_expire++; | 89 | priv->reply_tx_stats.life_expire++; |
90 | break; | 90 | break; |
91 | case TX_STATUS_FAIL_DEST_PS: | 91 | case TX_STATUS_FAIL_DEST_PS: |
92 | priv->_agn.reply_tx_stats.dest_ps++; | 92 | priv->reply_tx_stats.dest_ps++; |
93 | break; | 93 | break; |
94 | case TX_STATUS_FAIL_HOST_ABORTED: | 94 | case TX_STATUS_FAIL_HOST_ABORTED: |
95 | priv->_agn.reply_tx_stats.host_abort++; | 95 | priv->reply_tx_stats.host_abort++; |
96 | break; | 96 | break; |
97 | case TX_STATUS_FAIL_BT_RETRY: | 97 | case TX_STATUS_FAIL_BT_RETRY: |
98 | priv->_agn.reply_tx_stats.bt_retry++; | 98 | priv->reply_tx_stats.bt_retry++; |
99 | break; | 99 | break; |
100 | case TX_STATUS_FAIL_STA_INVALID: | 100 | case TX_STATUS_FAIL_STA_INVALID: |
101 | priv->_agn.reply_tx_stats.sta_invalid++; | 101 | priv->reply_tx_stats.sta_invalid++; |
102 | break; | 102 | break; |
103 | case TX_STATUS_FAIL_FRAG_DROPPED: | 103 | case TX_STATUS_FAIL_FRAG_DROPPED: |
104 | priv->_agn.reply_tx_stats.frag_drop++; | 104 | priv->reply_tx_stats.frag_drop++; |
105 | break; | 105 | break; |
106 | case TX_STATUS_FAIL_TID_DISABLE: | 106 | case TX_STATUS_FAIL_TID_DISABLE: |
107 | priv->_agn.reply_tx_stats.tid_disable++; | 107 | priv->reply_tx_stats.tid_disable++; |
108 | break; | 108 | break; |
109 | case TX_STATUS_FAIL_FIFO_FLUSHED: | 109 | case TX_STATUS_FAIL_FIFO_FLUSHED: |
110 | priv->_agn.reply_tx_stats.fifo_flush++; | 110 | priv->reply_tx_stats.fifo_flush++; |
111 | break; | 111 | break; |
112 | case TX_STATUS_FAIL_INSUFFICIENT_CF_POLL: | 112 | case TX_STATUS_FAIL_INSUFFICIENT_CF_POLL: |
113 | priv->_agn.reply_tx_stats.insuff_cf_poll++; | 113 | priv->reply_tx_stats.insuff_cf_poll++; |
114 | break; | 114 | break; |
115 | case TX_STATUS_FAIL_PASSIVE_NO_RX: | 115 | case TX_STATUS_FAIL_PASSIVE_NO_RX: |
116 | priv->_agn.reply_tx_stats.fail_hw_drop++; | 116 | priv->reply_tx_stats.fail_hw_drop++; |
117 | break; | 117 | break; |
118 | case TX_STATUS_FAIL_NO_BEACON_ON_RADAR: | 118 | case TX_STATUS_FAIL_NO_BEACON_ON_RADAR: |
119 | priv->_agn.reply_tx_stats.sta_color_mismatch++; | 119 | priv->reply_tx_stats.sta_color_mismatch++; |
120 | break; | 120 | break; |
121 | default: | 121 | default: |
122 | priv->_agn.reply_tx_stats.unknown++; | 122 | priv->reply_tx_stats.unknown++; |
123 | break; | 123 | break; |
124 | } | 124 | } |
125 | } | 125 | } |
@@ -130,43 +130,43 @@ static void iwlagn_count_agg_tx_err_status(struct iwl_priv *priv, u16 status) | |||
130 | 130 | ||
131 | switch (status) { | 131 | switch (status) { |
132 | case AGG_TX_STATE_UNDERRUN_MSK: | 132 | case AGG_TX_STATE_UNDERRUN_MSK: |
133 | priv->_agn.reply_agg_tx_stats.underrun++; | 133 | priv->reply_agg_tx_stats.underrun++; |
134 | break; | 134 | break; |
135 | case AGG_TX_STATE_BT_PRIO_MSK: | 135 | case AGG_TX_STATE_BT_PRIO_MSK: |
136 | priv->_agn.reply_agg_tx_stats.bt_prio++; | 136 | priv->reply_agg_tx_stats.bt_prio++; |
137 | break; | 137 | break; |
138 | case AGG_TX_STATE_FEW_BYTES_MSK: | 138 | case AGG_TX_STATE_FEW_BYTES_MSK: |
139 | priv->_agn.reply_agg_tx_stats.few_bytes++; | 139 | priv->reply_agg_tx_stats.few_bytes++; |
140 | break; | 140 | break; |
141 | case AGG_TX_STATE_ABORT_MSK: | 141 | case AGG_TX_STATE_ABORT_MSK: |
142 | priv->_agn.reply_agg_tx_stats.abort++; | 142 | priv->reply_agg_tx_stats.abort++; |
143 | break; | 143 | break; |
144 | case AGG_TX_STATE_LAST_SENT_TTL_MSK: | 144 | case AGG_TX_STATE_LAST_SENT_TTL_MSK: |
145 | priv->_agn.reply_agg_tx_stats.last_sent_ttl++; | 145 | priv->reply_agg_tx_stats.last_sent_ttl++; |
146 | break; | 146 | break; |
147 | case AGG_TX_STATE_LAST_SENT_TRY_CNT_MSK: | 147 | case AGG_TX_STATE_LAST_SENT_TRY_CNT_MSK: |
148 | priv->_agn.reply_agg_tx_stats.last_sent_try++; | 148 | priv->reply_agg_tx_stats.last_sent_try++; |
149 | break; | 149 | break; |
150 | case AGG_TX_STATE_LAST_SENT_BT_KILL_MSK: | 150 | case AGG_TX_STATE_LAST_SENT_BT_KILL_MSK: |
151 | priv->_agn.reply_agg_tx_stats.last_sent_bt_kill++; | 151 | priv->reply_agg_tx_stats.last_sent_bt_kill++; |
152 | break; | 152 | break; |
153 | case AGG_TX_STATE_SCD_QUERY_MSK: | 153 | case AGG_TX_STATE_SCD_QUERY_MSK: |
154 | priv->_agn.reply_agg_tx_stats.scd_query++; | 154 | priv->reply_agg_tx_stats.scd_query++; |
155 | break; | 155 | break; |
156 | case AGG_TX_STATE_TEST_BAD_CRC32_MSK: | 156 | case AGG_TX_STATE_TEST_BAD_CRC32_MSK: |
157 | priv->_agn.reply_agg_tx_stats.bad_crc32++; | 157 | priv->reply_agg_tx_stats.bad_crc32++; |
158 | break; | 158 | break; |
159 | case AGG_TX_STATE_RESPONSE_MSK: | 159 | case AGG_TX_STATE_RESPONSE_MSK: |
160 | priv->_agn.reply_agg_tx_stats.response++; | 160 | priv->reply_agg_tx_stats.response++; |
161 | break; | 161 | break; |
162 | case AGG_TX_STATE_DUMP_TX_MSK: | 162 | case AGG_TX_STATE_DUMP_TX_MSK: |
163 | priv->_agn.reply_agg_tx_stats.dump_tx++; | 163 | priv->reply_agg_tx_stats.dump_tx++; |
164 | break; | 164 | break; |
165 | case AGG_TX_STATE_DELAY_TX_MSK: | 165 | case AGG_TX_STATE_DELAY_TX_MSK: |
166 | priv->_agn.reply_agg_tx_stats.delay_tx++; | 166 | priv->reply_agg_tx_stats.delay_tx++; |
167 | break; | 167 | break; |
168 | default: | 168 | default: |
169 | priv->_agn.reply_agg_tx_stats.unknown++; | 169 | priv->reply_agg_tx_stats.unknown++; |
170 | break; | 170 | break; |
171 | } | 171 | } |
172 | } | 172 | } |
@@ -749,7 +749,7 @@ static int iwl_get_channels_for_scan(struct iwl_priv *priv, | |||
749 | 749 | ||
750 | static int iwl_fill_offch_tx(struct iwl_priv *priv, void *data, size_t maxlen) | 750 | static int iwl_fill_offch_tx(struct iwl_priv *priv, void *data, size_t maxlen) |
751 | { | 751 | { |
752 | struct sk_buff *skb = priv->_agn.offchan_tx_skb; | 752 | struct sk_buff *skb = priv->offchan_tx_skb; |
753 | 753 | ||
754 | if (skb->len < maxlen) | 754 | if (skb->len < maxlen) |
755 | maxlen = skb->len; | 755 | maxlen = skb->len; |
@@ -835,7 +835,7 @@ int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif) | |||
835 | } else if (priv->scan_type == IWL_SCAN_OFFCH_TX) { | 835 | } else if (priv->scan_type == IWL_SCAN_OFFCH_TX) { |
836 | scan->suspend_time = 0; | 836 | scan->suspend_time = 0; |
837 | scan->max_out_time = | 837 | scan->max_out_time = |
838 | cpu_to_le32(1024 * priv->_agn.offchan_tx_timeout); | 838 | cpu_to_le32(1024 * priv->offchan_tx_timeout); |
839 | } | 839 | } |
840 | 840 | ||
841 | switch (priv->scan_type) { | 841 | switch (priv->scan_type) { |
@@ -1023,9 +1023,9 @@ int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif) | |||
1023 | scan_ch = (void *)&scan->data[cmd_len]; | 1023 | scan_ch = (void *)&scan->data[cmd_len]; |
1024 | scan_ch->type = SCAN_CHANNEL_TYPE_ACTIVE; | 1024 | scan_ch->type = SCAN_CHANNEL_TYPE_ACTIVE; |
1025 | scan_ch->channel = | 1025 | scan_ch->channel = |
1026 | cpu_to_le16(priv->_agn.offchan_tx_chan->hw_value); | 1026 | cpu_to_le16(priv->offchan_tx_chan->hw_value); |
1027 | scan_ch->active_dwell = | 1027 | scan_ch->active_dwell = |
1028 | cpu_to_le16(priv->_agn.offchan_tx_timeout); | 1028 | cpu_to_le16(priv->offchan_tx_timeout); |
1029 | scan_ch->passive_dwell = 0; | 1029 | scan_ch->passive_dwell = 0; |
1030 | 1030 | ||
1031 | /* Set txpower levels to defaults */ | 1031 | /* Set txpower levels to defaults */ |
@@ -1035,7 +1035,7 @@ int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif) | |||
1035 | * power level: | 1035 | * power level: |
1036 | * scan_ch->tx_gain = ((1 << 5) | (2 << 3)) | 3; | 1036 | * scan_ch->tx_gain = ((1 << 5) | (2 << 3)) | 3; |
1037 | */ | 1037 | */ |
1038 | if (priv->_agn.offchan_tx_chan->band == IEEE80211_BAND_5GHZ) | 1038 | if (priv->offchan_tx_chan->band == IEEE80211_BAND_5GHZ) |
1039 | scan_ch->tx_gain = ((1 << 5) | (3 << 3)) | 3; | 1039 | scan_ch->tx_gain = ((1 << 5) | (3 << 3)) | 3; |
1040 | else | 1040 | else |
1041 | scan_ch->tx_gain = ((1 << 5) | (5 << 3)); | 1041 | scan_ch->tx_gain = ((1 << 5) | (5 << 3)); |
@@ -2004,9 +2004,9 @@ void iwlagn_init_notification_wait(struct iwl_priv *priv, | |||
2004 | wait_entry->triggered = false; | 2004 | wait_entry->triggered = false; |
2005 | wait_entry->aborted = false; | 2005 | wait_entry->aborted = false; |
2006 | 2006 | ||
2007 | spin_lock_bh(&priv->_agn.notif_wait_lock); | 2007 | spin_lock_bh(&priv->notif_wait_lock); |
2008 | list_add(&wait_entry->list, &priv->_agn.notif_waits); | 2008 | list_add(&wait_entry->list, &priv->notif_waits); |
2009 | spin_unlock_bh(&priv->_agn.notif_wait_lock); | 2009 | spin_unlock_bh(&priv->notif_wait_lock); |
2010 | } | 2010 | } |
2011 | 2011 | ||
2012 | int iwlagn_wait_notification(struct iwl_priv *priv, | 2012 | int iwlagn_wait_notification(struct iwl_priv *priv, |
@@ -2015,13 +2015,13 @@ int iwlagn_wait_notification(struct iwl_priv *priv, | |||
2015 | { | 2015 | { |
2016 | int ret; | 2016 | int ret; |
2017 | 2017 | ||
2018 | ret = wait_event_timeout(priv->_agn.notif_waitq, | 2018 | ret = wait_event_timeout(priv->notif_waitq, |
2019 | wait_entry->triggered || wait_entry->aborted, | 2019 | wait_entry->triggered || wait_entry->aborted, |
2020 | timeout); | 2020 | timeout); |
2021 | 2021 | ||
2022 | spin_lock_bh(&priv->_agn.notif_wait_lock); | 2022 | spin_lock_bh(&priv->notif_wait_lock); |
2023 | list_del(&wait_entry->list); | 2023 | list_del(&wait_entry->list); |
2024 | spin_unlock_bh(&priv->_agn.notif_wait_lock); | 2024 | spin_unlock_bh(&priv->notif_wait_lock); |
2025 | 2025 | ||
2026 | if (wait_entry->aborted) | 2026 | if (wait_entry->aborted) |
2027 | return -EIO; | 2027 | return -EIO; |
@@ -2035,7 +2035,7 @@ int iwlagn_wait_notification(struct iwl_priv *priv, | |||
2035 | void iwlagn_remove_notification(struct iwl_priv *priv, | 2035 | void iwlagn_remove_notification(struct iwl_priv *priv, |
2036 | struct iwl_notification_wait *wait_entry) | 2036 | struct iwl_notification_wait *wait_entry) |
2037 | { | 2037 | { |
2038 | spin_lock_bh(&priv->_agn.notif_wait_lock); | 2038 | spin_lock_bh(&priv->notif_wait_lock); |
2039 | list_del(&wait_entry->list); | 2039 | list_del(&wait_entry->list); |
2040 | spin_unlock_bh(&priv->_agn.notif_wait_lock); | 2040 | spin_unlock_bh(&priv->notif_wait_lock); |
2041 | } | 2041 | } |