[PATCH 1/2] Rename wcn_sta to wcn36xx_sta
Eugene Krasnikov
k.eugene.e at gmail.com
Fri Jul 26 13:31:30 EDT 2013
Use the same prefix everywhere.
Signed-off-by: Eugene Krasnikov <k.eugene.e at gmail.com>
---
main.c | 12 ++++++------
txrx.c | 4 ++--
txrx.h | 4 ++--
wcn36xx.h | 2 +-
4 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/main.c b/main.c
index 8ca1245..b1a4fec 100644
--- a/main.c
+++ b/main.c
@@ -329,10 +329,10 @@ static void wcn36xx_tx(struct ieee80211_hw *hw,
struct sk_buff *skb)
{
struct wcn36xx *wcn = hw->priv;
- struct wcn_sta *sta_priv = NULL;
+ struct wcn36xx_sta *sta_priv = NULL;
if (control->sta)
- sta_priv = (struct wcn_sta *)control->sta->drv_priv;
+ sta_priv = (struct wcn36xx_sta *)control->sta->drv_priv;
wcn36xx_start_tx(wcn, sta_priv, skb);
}
@@ -342,7 +342,7 @@ static int wcn36xx_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
struct ieee80211_key_conf *key_conf)
{
struct wcn36xx *wcn = hw->priv;
- struct wcn_sta *sta_priv = (struct wcn_sta *)sta->drv_priv;
+ struct wcn36xx_sta *sta_priv = (struct wcn36xx_sta *)sta->drv_priv;
int ret = 0;
u8 key[WLAN_MAX_KEY_LEN];
wcn36xx_dbg(WCN36XX_DBG_MAC, "mac80211 set key");
@@ -758,12 +758,12 @@ int wcn36xx_ampdu_action(struct ieee80211_hw *hw,
u8 buf_size)
{
struct wcn36xx *wcn = hw->priv;
- struct wcn_sta *sta_priv = NULL;
+ struct wcn36xx_sta *sta_priv = NULL;
wcn36xx_dbg(WCN36XX_DBG_MAC, "mac ampdu action action %d tid %d",
action, tid);
switch (action) {
case IEEE80211_AMPDU_RX_START:
- sta_priv = (struct wcn_sta *)sta->drv_priv;
+ sta_priv = (struct wcn36xx_sta *)sta->drv_priv;
sta_priv->tid = tid;
wcn36xx_smd_add_ba_session(wcn, sta, tid, ssn, 0);
wcn36xx_smd_add_ba(wcn);
@@ -866,7 +866,7 @@ static int wcn36xx_init_ieee80211(struct wcn36xx *wcn)
SET_IEEE80211_DEV(wcn->hw, wcn->dev);
- wcn->hw->sta_data_size = sizeof(struct wcn_sta);
+ wcn->hw->sta_data_size = sizeof(struct wcn36xx_sta);
wcn->hw->vif_data_size = sizeof(struct wcn36xx_vif);
diff --git a/txrx.c b/txrx.c
index bdc68c7..fa3b996 100644
--- a/txrx.c
+++ b/txrx.c
@@ -92,7 +92,7 @@ static void wcn36xx_set_tx_pdu(struct wcn36xx_tx_bd *bd,
static void wcn36xx_set_tx_data(struct wcn36xx_tx_bd *bd,
struct wcn36xx *wcn,
- struct wcn_sta *sta_priv,
+ struct wcn36xx_sta *sta_priv,
struct ieee80211_hdr *hdr,
bool bcast)
{
@@ -147,7 +147,7 @@ static void wcn36xx_set_tx_mgmt(struct wcn36xx_tx_bd *bd,
}
int wcn36xx_start_tx(struct wcn36xx *wcn,
- struct wcn_sta *sta_priv,
+ struct wcn36xx_sta *sta_priv,
struct sk_buff *skb)
{
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
diff --git a/txrx.h b/txrx.h
index 7e522f9..a2e4531 100644
--- a/txrx.h
+++ b/txrx.h
@@ -149,12 +149,12 @@ struct wcn36xx_tx_bd {
u32 reserved7:6;*/
};
-struct wcn_sta;
+struct wcn36xx_sta;
struct wcn36xx;
int wcn36xx_rx_skb(struct wcn36xx *wcn, struct sk_buff *skb);
int wcn36xx_start_tx(struct wcn36xx *wcn,
- struct wcn_sta *sta_priv,
+ struct wcn36xx_sta *sta_priv,
struct sk_buff *skb);
#endif /* _TXRX_H_ */
diff --git a/wcn36xx.h b/wcn36xx.h
index 565ed79..389a9a4 100644
--- a/wcn36xx.h
+++ b/wcn36xx.h
@@ -114,7 +114,7 @@ struct wcn36xx_vif {
u8 self_dpu_desc_index;
};
-struct wcn_sta {
+struct wcn36xx_sta {
u16 tid;
u8 sta_id;
bool is_data_encrypted;
--
1.8.2.2
More information about the wcn36xx
mailing list