diff options
author | Pontus Fuchs <pontus.fuchs@gmail.com> | 2016-04-19 01:00:42 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2016-04-25 13:37:04 -0400 |
commit | 657a49be13eda5a3befc161d1d499d413c348762 (patch) | |
tree | d221325f93b666ece5e9a6ea6e0396b195071311 /drivers/net/wireless/ath/wcn36xx | |
parent | ce75877f6c3da01cd5efe41683dd32beee1b4b33 (diff) |
wcn36xx: Use consistent name for private vif
Some code used priv_vif and some used vif_priv. Convert all to vif_priv
for consistency.
Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/wcn36xx')
-rw-r--r-- | drivers/net/wireless/ath/wcn36xx/smd.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index cc1b3b7a4ff9..170440ed5d85 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c | |||
@@ -191,7 +191,7 @@ static void wcn36xx_smd_set_sta_params(struct wcn36xx *wcn, | |||
191 | struct ieee80211_sta *sta, | 191 | struct ieee80211_sta *sta, |
192 | struct wcn36xx_hal_config_sta_params *sta_params) | 192 | struct wcn36xx_hal_config_sta_params *sta_params) |
193 | { | 193 | { |
194 | struct wcn36xx_vif *priv_vif = wcn36xx_vif_to_priv(vif); | 194 | struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif); |
195 | struct wcn36xx_sta *priv_sta = NULL; | 195 | struct wcn36xx_sta *priv_sta = NULL; |
196 | if (vif->type == NL80211_IFTYPE_ADHOC || | 196 | if (vif->type == NL80211_IFTYPE_ADHOC || |
197 | vif->type == NL80211_IFTYPE_AP || | 197 | vif->type == NL80211_IFTYPE_AP || |
@@ -215,7 +215,7 @@ static void wcn36xx_smd_set_sta_params(struct wcn36xx *wcn, | |||
215 | else | 215 | else |
216 | memcpy(&sta_params->bssid, vif->addr, ETH_ALEN); | 216 | memcpy(&sta_params->bssid, vif->addr, ETH_ALEN); |
217 | 217 | ||
218 | sta_params->encrypt_type = priv_vif->encrypt_type; | 218 | sta_params->encrypt_type = vif_priv->encrypt_type; |
219 | sta_params->short_preamble_supported = true; | 219 | sta_params->short_preamble_supported = true; |
220 | 220 | ||
221 | sta_params->rifs_mode = 0; | 221 | sta_params->rifs_mode = 0; |
@@ -224,7 +224,7 @@ static void wcn36xx_smd_set_sta_params(struct wcn36xx *wcn, | |||
224 | sta_params->uapsd = 0; | 224 | sta_params->uapsd = 0; |
225 | sta_params->mimo_ps = WCN36XX_HAL_HT_MIMO_PS_STATIC; | 225 | sta_params->mimo_ps = WCN36XX_HAL_HT_MIMO_PS_STATIC; |
226 | sta_params->max_ampdu_duration = 0; | 226 | sta_params->max_ampdu_duration = 0; |
227 | sta_params->bssid_index = priv_vif->bss_index; | 227 | sta_params->bssid_index = vif_priv->bss_index; |
228 | sta_params->p2p = 0; | 228 | sta_params->p2p = 0; |
229 | 229 | ||
230 | if (sta) { | 230 | if (sta) { |
@@ -726,7 +726,7 @@ static int wcn36xx_smd_add_sta_self_rsp(struct wcn36xx *wcn, | |||
726 | size_t len) | 726 | size_t len) |
727 | { | 727 | { |
728 | struct wcn36xx_hal_add_sta_self_rsp_msg *rsp; | 728 | struct wcn36xx_hal_add_sta_self_rsp_msg *rsp; |
729 | struct wcn36xx_vif *priv_vif = wcn36xx_vif_to_priv(vif); | 729 | struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif); |
730 | 730 | ||
731 | if (len < sizeof(*rsp)) | 731 | if (len < sizeof(*rsp)) |
732 | return -EINVAL; | 732 | return -EINVAL; |
@@ -743,8 +743,8 @@ static int wcn36xx_smd_add_sta_self_rsp(struct wcn36xx *wcn, | |||
743 | "hal add sta self status %d self_sta_index %d dpu_index %d\n", | 743 | "hal add sta self status %d self_sta_index %d dpu_index %d\n", |
744 | rsp->status, rsp->self_sta_index, rsp->dpu_index); | 744 | rsp->status, rsp->self_sta_index, rsp->dpu_index); |
745 | 745 | ||
746 | priv_vif->self_sta_index = rsp->self_sta_index; | 746 | vif_priv->self_sta_index = rsp->self_sta_index; |
747 | priv_vif->self_dpu_desc_index = rsp->dpu_index; | 747 | vif_priv->self_dpu_desc_index = rsp->dpu_index; |
748 | 748 | ||
749 | return 0; | 749 | return 0; |
750 | } | 750 | } |
@@ -1175,7 +1175,7 @@ static int wcn36xx_smd_config_bss_rsp(struct wcn36xx *wcn, | |||
1175 | { | 1175 | { |
1176 | struct wcn36xx_hal_config_bss_rsp_msg *rsp; | 1176 | struct wcn36xx_hal_config_bss_rsp_msg *rsp; |
1177 | struct wcn36xx_hal_config_bss_rsp_params *params; | 1177 | struct wcn36xx_hal_config_bss_rsp_params *params; |
1178 | struct wcn36xx_vif *priv_vif = wcn36xx_vif_to_priv(vif); | 1178 | struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif); |
1179 | 1179 | ||
1180 | if (len < sizeof(*rsp)) | 1180 | if (len < sizeof(*rsp)) |
1181 | return -EINVAL; | 1181 | return -EINVAL; |
@@ -1198,14 +1198,14 @@ static int wcn36xx_smd_config_bss_rsp(struct wcn36xx *wcn, | |||
1198 | params->bss_bcast_sta_idx, params->mac, | 1198 | params->bss_bcast_sta_idx, params->mac, |
1199 | params->tx_mgmt_power, params->ucast_dpu_signature); | 1199 | params->tx_mgmt_power, params->ucast_dpu_signature); |
1200 | 1200 | ||
1201 | priv_vif->bss_index = params->bss_index; | 1201 | vif_priv->bss_index = params->bss_index; |
1202 | 1202 | ||
1203 | if (priv_vif->sta) { | 1203 | if (vif_priv->sta) { |
1204 | priv_vif->sta->bss_sta_index = params->bss_sta_index; | 1204 | vif_priv->sta->bss_sta_index = params->bss_sta_index; |
1205 | priv_vif->sta->bss_dpu_desc_index = params->dpu_desc_index; | 1205 | vif_priv->sta->bss_dpu_desc_index = params->dpu_desc_index; |
1206 | } | 1206 | } |
1207 | 1207 | ||
1208 | priv_vif->self_ucast_dpu_sign = params->ucast_dpu_signature; | 1208 | vif_priv->self_ucast_dpu_sign = params->ucast_dpu_signature; |
1209 | 1209 | ||
1210 | return 0; | 1210 | return 0; |
1211 | } | 1211 | } |
@@ -1343,13 +1343,13 @@ out: | |||
1343 | int wcn36xx_smd_delete_bss(struct wcn36xx *wcn, struct ieee80211_vif *vif) | 1343 | int wcn36xx_smd_delete_bss(struct wcn36xx *wcn, struct ieee80211_vif *vif) |
1344 | { | 1344 | { |
1345 | struct wcn36xx_hal_delete_bss_req_msg msg_body; | 1345 | struct wcn36xx_hal_delete_bss_req_msg msg_body; |
1346 | struct wcn36xx_vif *priv_vif = wcn36xx_vif_to_priv(vif); | 1346 | struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif); |
1347 | int ret = 0; | 1347 | int ret = 0; |
1348 | 1348 | ||
1349 | mutex_lock(&wcn->hal_mutex); | 1349 | mutex_lock(&wcn->hal_mutex); |
1350 | INIT_HAL_MSG(msg_body, WCN36XX_HAL_DELETE_BSS_REQ); | 1350 | INIT_HAL_MSG(msg_body, WCN36XX_HAL_DELETE_BSS_REQ); |
1351 | 1351 | ||
1352 | msg_body.bss_index = priv_vif->bss_index; | 1352 | msg_body.bss_index = vif_priv->bss_index; |
1353 | 1353 | ||
1354 | PREPARE_HAL_BUF(wcn->hal_buf, msg_body); | 1354 | PREPARE_HAL_BUF(wcn->hal_buf, msg_body); |
1355 | 1355 | ||