[PATCH v2 4/4] Remove _req from wcn36xx_smd_switch_channel function

Olof Johansson dev at skyshaper.net
Mon Jun 10 01:56:54 EDT 2013


Fix naming of wcn36xx_smd_switch_channel function. It included a
suffex with _req which is not in line with our function naming.
---
 main.c | 2 +-
 smd.c  | 2 +-
 smd.h  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/main.c b/main.c
index 8be3152..e18ce94 100644
--- a/main.c
+++ b/main.c
@@ -143,7 +143,7 @@ static int wcn36xx_config(struct ieee80211_hw *hw,
u32 changed)
 		wcn->ch = hw->conf.chandef.chan->hw_value;
 		wcn->current_channel = hw->conf.chandef.chan;
 		wcn36xx_dbg(WCN36XX_DBG_MAC, "wcn36xx_config channel switch=%d", wcn->ch);
-		wcn36xx_smd_switch_channel_req(wcn, wcn->ch);
+		wcn36xx_smd_switch_channel(wcn, wcn->ch);
 	}

 	return 0;
diff --git a/smd.c b/smd.c
index 267b69e..e67f0fd 100644
--- a/smd.c
+++ b/smd.c
@@ -253,7 +253,7 @@ int wcn36xx_smd_finish_scan(struct wcn36xx *wcn)
 	return wcn36xx_smd_send_and_wait(wcn, msg_body.header.len);
 }

-int wcn36xx_smd_switch_channel_req(struct wcn36xx *wcn, int ch)
+int wcn36xx_smd_switch_channel(struct wcn36xx *wcn, int ch)
 {
 	struct wcn36xx_hal_switch_channel_req_msg msg_body;

diff --git a/smd.h b/smd.h
index d867160..97c8edc 100644
--- a/smd.h
+++ b/smd.h
@@ -71,7 +71,7 @@ int wcn36xx_smd_config_sta(struct wcn36xx *wcn,
const u8 *bssid,
 			   const u8 *sta_mac);
 int wcn36xx_smd_send_beacon(struct wcn36xx *wcn, struct sk_buff *skb_beacon,
 			    u16 tim_off, u16 p2p_off);
-int wcn36xx_smd_switch_channel_req(struct wcn36xx *wcn, int ch);
+int wcn36xx_smd_switch_channel(struct wcn36xx *wcn, int ch);
 int wcn36xx_smd_update_proberesp_tmpl(struct wcn36xx *wcn, struct
sk_buff *skb);
 int wcn36xx_smd_set_stakey(struct wcn36xx *wcn,
 			   enum ani_ed_type enc_type,
-- 
1.8.2.2



More information about the wcn36xx mailing list