* [PATCH 01/13] staging: wilc1000: fix return type of wilc_scan
@ 2016-01-05 14:06 Chaehyun Lim
2016-01-05 14:06 ` [PATCH 02/13] staging: wilc1000: rename u8ScanSource in wilc_scan Chaehyun Lim
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: Chaehyun Lim @ 2016-01-05 14:06 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
This patch changes return type of wilc_scan from s32 to int.
The result variable gets return value from wilc_mq_send that has data
type of int. It should be changed return type of this function as well
as data type of result variable.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/host_interface.c | 4 ++--
drivers/staging/wilc1000/host_interface.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 27e18c9..7581c8f 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -3672,12 +3672,12 @@ int wilc_get_statistics(struct wilc_vif *vif, struct rf_info *stats)
return result;
}
-s32 wilc_scan(struct wilc_vif *vif, u8 u8ScanSource, u8 u8ScanType,
+int wilc_scan(struct wilc_vif *vif, u8 u8ScanSource, u8 u8ScanType,
u8 *pu8ChnlFreqList, u8 u8ChnlListLen, const u8 *pu8IEs,
size_t IEsLen, wilc_scan_result ScanResult, void *pvUserArg,
struct hidden_network *pstrHiddenNetwork)
{
- s32 result = 0;
+ int result = 0;
struct host_if_msg msg;
struct host_if_drv *hif_drv = vif->hif_drv;
diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h
index 8541d16..4ff6b4f 100644
--- a/drivers/staging/wilc1000/host_interface.h
+++ b/drivers/staging/wilc1000/host_interface.h
@@ -335,7 +335,7 @@ int wilc_flush_join_req(struct wilc_vif *vif);
int wilc_disconnect(struct wilc_vif *vif, u16 reason_code);
int wilc_set_mac_chnl_num(struct wilc_vif *vif, u8 channel);
int wilc_get_rssi(struct wilc_vif *vif, s8 *rssi_level);
-s32 wilc_scan(struct wilc_vif *vif, u8 u8ScanSource, u8 u8ScanType,
+int wilc_scan(struct wilc_vif *vif, u8 u8ScanSource, u8 u8ScanType,
u8 *pu8ChnlFreqList, u8 u8ChnlListLen, const u8 *pu8IEs,
size_t IEsLen, wilc_scan_result ScanResult, void *pvUserArg,
struct hidden_network *pstrHiddenNetwork);
--
2.6.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 02/13] staging: wilc1000: rename u8ScanSource in wilc_scan
2016-01-05 14:06 [PATCH 01/13] staging: wilc1000: fix return type of wilc_scan Chaehyun Lim
@ 2016-01-05 14:06 ` Chaehyun Lim
2016-01-05 14:06 ` [PATCH 03/13] staging: wilc1000: rename u8ScanType " Chaehyun Lim
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Chaehyun Lim @ 2016-01-05 14:06 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
This patch renames u8ScanSource to scan_source to avoid camelcase.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/host_interface.c | 4 ++--
drivers/staging/wilc1000/host_interface.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 7581c8f..f32cb76 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -3672,7 +3672,7 @@ int wilc_get_statistics(struct wilc_vif *vif, struct rf_info *stats)
return result;
}
-int wilc_scan(struct wilc_vif *vif, u8 u8ScanSource, u8 u8ScanType,
+int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 u8ScanType,
u8 *pu8ChnlFreqList, u8 u8ChnlListLen, const u8 *pu8IEs,
size_t IEsLen, wilc_scan_result ScanResult, void *pvUserArg,
struct hidden_network *pstrHiddenNetwork)
@@ -3698,7 +3698,7 @@ int wilc_scan(struct wilc_vif *vif, u8 u8ScanSource, u8 u8ScanType,
PRINT_D(HOSTINF_DBG, "pstrHiddenNetwork IS EQUAL TO NULL\n");
msg.vif = vif;
- msg.body.scan_info.src = u8ScanSource;
+ msg.body.scan_info.src = scan_source;
msg.body.scan_info.type = u8ScanType;
msg.body.scan_info.result = ScanResult;
msg.body.scan_info.arg = pvUserArg;
diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h
index 4ff6b4f..fc71f16 100644
--- a/drivers/staging/wilc1000/host_interface.h
+++ b/drivers/staging/wilc1000/host_interface.h
@@ -335,7 +335,7 @@ int wilc_flush_join_req(struct wilc_vif *vif);
int wilc_disconnect(struct wilc_vif *vif, u16 reason_code);
int wilc_set_mac_chnl_num(struct wilc_vif *vif, u8 channel);
int wilc_get_rssi(struct wilc_vif *vif, s8 *rssi_level);
-int wilc_scan(struct wilc_vif *vif, u8 u8ScanSource, u8 u8ScanType,
+int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 u8ScanType,
u8 *pu8ChnlFreqList, u8 u8ChnlListLen, const u8 *pu8IEs,
size_t IEsLen, wilc_scan_result ScanResult, void *pvUserArg,
struct hidden_network *pstrHiddenNetwork);
--
2.6.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 03/13] staging: wilc1000: rename u8ScanType in wilc_scan
2016-01-05 14:06 [PATCH 01/13] staging: wilc1000: fix return type of wilc_scan Chaehyun Lim
2016-01-05 14:06 ` [PATCH 02/13] staging: wilc1000: rename u8ScanSource in wilc_scan Chaehyun Lim
@ 2016-01-05 14:06 ` Chaehyun Lim
2016-01-05 14:06 ` [PATCH 04/13] staging: wilc1000: rename pu8ChnlFreqList " Chaehyun Lim
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Chaehyun Lim @ 2016-01-05 14:06 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
This patch renames u8ScanType to scan_type to avoid camelcase.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/host_interface.c | 4 ++--
drivers/staging/wilc1000/host_interface.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index f32cb76..a09bd86 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -3672,7 +3672,7 @@ int wilc_get_statistics(struct wilc_vif *vif, struct rf_info *stats)
return result;
}
-int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 u8ScanType,
+int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
u8 *pu8ChnlFreqList, u8 u8ChnlListLen, const u8 *pu8IEs,
size_t IEsLen, wilc_scan_result ScanResult, void *pvUserArg,
struct hidden_network *pstrHiddenNetwork)
@@ -3699,7 +3699,7 @@ int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 u8ScanType,
msg.vif = vif;
msg.body.scan_info.src = scan_source;
- msg.body.scan_info.type = u8ScanType;
+ msg.body.scan_info.type = scan_type;
msg.body.scan_info.result = ScanResult;
msg.body.scan_info.arg = pvUserArg;
diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h
index fc71f16..8d26569 100644
--- a/drivers/staging/wilc1000/host_interface.h
+++ b/drivers/staging/wilc1000/host_interface.h
@@ -335,7 +335,7 @@ int wilc_flush_join_req(struct wilc_vif *vif);
int wilc_disconnect(struct wilc_vif *vif, u16 reason_code);
int wilc_set_mac_chnl_num(struct wilc_vif *vif, u8 channel);
int wilc_get_rssi(struct wilc_vif *vif, s8 *rssi_level);
-int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 u8ScanType,
+int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
u8 *pu8ChnlFreqList, u8 u8ChnlListLen, const u8 *pu8IEs,
size_t IEsLen, wilc_scan_result ScanResult, void *pvUserArg,
struct hidden_network *pstrHiddenNetwork);
--
2.6.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 04/13] staging: wilc1000: rename pu8ChnlFreqList in wilc_scan
2016-01-05 14:06 [PATCH 01/13] staging: wilc1000: fix return type of wilc_scan Chaehyun Lim
2016-01-05 14:06 ` [PATCH 02/13] staging: wilc1000: rename u8ScanSource in wilc_scan Chaehyun Lim
2016-01-05 14:06 ` [PATCH 03/13] staging: wilc1000: rename u8ScanType " Chaehyun Lim
@ 2016-01-05 14:06 ` Chaehyun Lim
2016-01-05 14:06 ` [PATCH 05/13] staging: wilc1000: rename u8ChnlListLen " Chaehyun Lim
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Chaehyun Lim @ 2016-01-05 14:06 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
This patch renames pu8ChnlFreqList to ch_freq_list to avoid camelcase.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/host_interface.c | 4 ++--
drivers/staging/wilc1000/host_interface.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index a09bd86..48c40de 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -3673,7 +3673,7 @@ int wilc_get_statistics(struct wilc_vif *vif, struct rf_info *stats)
}
int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
- u8 *pu8ChnlFreqList, u8 u8ChnlListLen, const u8 *pu8IEs,
+ u8 *ch_freq_list, u8 u8ChnlListLen, const u8 *pu8IEs,
size_t IEsLen, wilc_scan_result ScanResult, void *pvUserArg,
struct hidden_network *pstrHiddenNetwork)
{
@@ -3705,7 +3705,7 @@ int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
msg.body.scan_info.ch_list_len = u8ChnlListLen;
msg.body.scan_info.ch_freq_list = kmalloc(u8ChnlListLen, GFP_KERNEL);
- memcpy(msg.body.scan_info.ch_freq_list, pu8ChnlFreqList, u8ChnlListLen);
+ memcpy(msg.body.scan_info.ch_freq_list, ch_freq_list, u8ChnlListLen);
msg.body.scan_info.ies_len = IEsLen;
msg.body.scan_info.ies = kmalloc(IEsLen, GFP_KERNEL);
diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h
index 8d26569..998d449 100644
--- a/drivers/staging/wilc1000/host_interface.h
+++ b/drivers/staging/wilc1000/host_interface.h
@@ -336,7 +336,7 @@ int wilc_disconnect(struct wilc_vif *vif, u16 reason_code);
int wilc_set_mac_chnl_num(struct wilc_vif *vif, u8 channel);
int wilc_get_rssi(struct wilc_vif *vif, s8 *rssi_level);
int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
- u8 *pu8ChnlFreqList, u8 u8ChnlListLen, const u8 *pu8IEs,
+ u8 *ch_freq_list, u8 u8ChnlListLen, const u8 *pu8IEs,
size_t IEsLen, wilc_scan_result ScanResult, void *pvUserArg,
struct hidden_network *pstrHiddenNetwork);
int wilc_hif_set_cfg(struct wilc_vif *vif,
--
2.6.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 05/13] staging: wilc1000: rename u8ChnlListLen in wilc_scan
2016-01-05 14:06 [PATCH 01/13] staging: wilc1000: fix return type of wilc_scan Chaehyun Lim
` (2 preceding siblings ...)
2016-01-05 14:06 ` [PATCH 04/13] staging: wilc1000: rename pu8ChnlFreqList " Chaehyun Lim
@ 2016-01-05 14:06 ` Chaehyun Lim
2016-01-05 14:06 ` [PATCH 06/13] staging: wilc1000: rename pu8IEs " Chaehyun Lim
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Chaehyun Lim @ 2016-01-05 14:06 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
This patch renames u8ChnlListLen to ch_list_len to avoid camelcase.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/host_interface.c | 8 ++++----
drivers/staging/wilc1000/host_interface.h | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 48c40de..07ff083 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -3673,7 +3673,7 @@ int wilc_get_statistics(struct wilc_vif *vif, struct rf_info *stats)
}
int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
- u8 *ch_freq_list, u8 u8ChnlListLen, const u8 *pu8IEs,
+ u8 *ch_freq_list, u8 ch_list_len, const u8 *pu8IEs,
size_t IEsLen, wilc_scan_result ScanResult, void *pvUserArg,
struct hidden_network *pstrHiddenNetwork)
{
@@ -3703,9 +3703,9 @@ int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
msg.body.scan_info.result = ScanResult;
msg.body.scan_info.arg = pvUserArg;
- msg.body.scan_info.ch_list_len = u8ChnlListLen;
- msg.body.scan_info.ch_freq_list = kmalloc(u8ChnlListLen, GFP_KERNEL);
- memcpy(msg.body.scan_info.ch_freq_list, ch_freq_list, u8ChnlListLen);
+ msg.body.scan_info.ch_list_len = ch_list_len;
+ msg.body.scan_info.ch_freq_list = kmalloc(ch_list_len, GFP_KERNEL);
+ memcpy(msg.body.scan_info.ch_freq_list, ch_freq_list, ch_list_len);
msg.body.scan_info.ies_len = IEsLen;
msg.body.scan_info.ies = kmalloc(IEsLen, GFP_KERNEL);
diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h
index 998d449..7d7675a 100644
--- a/drivers/staging/wilc1000/host_interface.h
+++ b/drivers/staging/wilc1000/host_interface.h
@@ -336,7 +336,7 @@ int wilc_disconnect(struct wilc_vif *vif, u16 reason_code);
int wilc_set_mac_chnl_num(struct wilc_vif *vif, u8 channel);
int wilc_get_rssi(struct wilc_vif *vif, s8 *rssi_level);
int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
- u8 *ch_freq_list, u8 u8ChnlListLen, const u8 *pu8IEs,
+ u8 *ch_freq_list, u8 ch_list_len, const u8 *pu8IEs,
size_t IEsLen, wilc_scan_result ScanResult, void *pvUserArg,
struct hidden_network *pstrHiddenNetwork);
int wilc_hif_set_cfg(struct wilc_vif *vif,
--
2.6.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 06/13] staging: wilc1000: rename pu8IEs in wilc_scan
2016-01-05 14:06 [PATCH 01/13] staging: wilc1000: fix return type of wilc_scan Chaehyun Lim
` (3 preceding siblings ...)
2016-01-05 14:06 ` [PATCH 05/13] staging: wilc1000: rename u8ChnlListLen " Chaehyun Lim
@ 2016-01-05 14:06 ` Chaehyun Lim
2016-01-05 14:06 ` [PATCH 07/13] staging: wilc1000: rename IEsLen " Chaehyun Lim
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Chaehyun Lim @ 2016-01-05 14:06 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
This patch renames pu8IEs to ies to avoid camelcase.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/host_interface.c | 4 ++--
drivers/staging/wilc1000/host_interface.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 07ff083..3907717 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -3673,7 +3673,7 @@ int wilc_get_statistics(struct wilc_vif *vif, struct rf_info *stats)
}
int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
- u8 *ch_freq_list, u8 ch_list_len, const u8 *pu8IEs,
+ u8 *ch_freq_list, u8 ch_list_len, const u8 *ies,
size_t IEsLen, wilc_scan_result ScanResult, void *pvUserArg,
struct hidden_network *pstrHiddenNetwork)
{
@@ -3709,7 +3709,7 @@ int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
msg.body.scan_info.ies_len = IEsLen;
msg.body.scan_info.ies = kmalloc(IEsLen, GFP_KERNEL);
- memcpy(msg.body.scan_info.ies, pu8IEs, IEsLen);
+ memcpy(msg.body.scan_info.ies, ies, IEsLen);
result = wilc_mq_send(&hif_msg_q, &msg, sizeof(struct host_if_msg));
if (result) {
diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h
index 7d7675a..b7bcd93 100644
--- a/drivers/staging/wilc1000/host_interface.h
+++ b/drivers/staging/wilc1000/host_interface.h
@@ -336,7 +336,7 @@ int wilc_disconnect(struct wilc_vif *vif, u16 reason_code);
int wilc_set_mac_chnl_num(struct wilc_vif *vif, u8 channel);
int wilc_get_rssi(struct wilc_vif *vif, s8 *rssi_level);
int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
- u8 *ch_freq_list, u8 ch_list_len, const u8 *pu8IEs,
+ u8 *ch_freq_list, u8 ch_list_len, const u8 *ies,
size_t IEsLen, wilc_scan_result ScanResult, void *pvUserArg,
struct hidden_network *pstrHiddenNetwork);
int wilc_hif_set_cfg(struct wilc_vif *vif,
--
2.6.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 07/13] staging: wilc1000: rename IEsLen in wilc_scan
2016-01-05 14:06 [PATCH 01/13] staging: wilc1000: fix return type of wilc_scan Chaehyun Lim
` (4 preceding siblings ...)
2016-01-05 14:06 ` [PATCH 06/13] staging: wilc1000: rename pu8IEs " Chaehyun Lim
@ 2016-01-05 14:06 ` Chaehyun Lim
2016-01-05 14:06 ` [PATCH 08/13] staging: wilc1000: rename ScanResult " Chaehyun Lim
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Chaehyun Lim @ 2016-01-05 14:06 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
This patch renames IEsLen to ies_len to avoid camelcase.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/host_interface.c | 8 ++++----
drivers/staging/wilc1000/host_interface.h | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 3907717..67d0d14 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -3674,7 +3674,7 @@ int wilc_get_statistics(struct wilc_vif *vif, struct rf_info *stats)
int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
u8 *ch_freq_list, u8 ch_list_len, const u8 *ies,
- size_t IEsLen, wilc_scan_result ScanResult, void *pvUserArg,
+ size_t ies_len, wilc_scan_result ScanResult, void *pvUserArg,
struct hidden_network *pstrHiddenNetwork)
{
int result = 0;
@@ -3707,9 +3707,9 @@ int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
msg.body.scan_info.ch_freq_list = kmalloc(ch_list_len, GFP_KERNEL);
memcpy(msg.body.scan_info.ch_freq_list, ch_freq_list, ch_list_len);
- msg.body.scan_info.ies_len = IEsLen;
- msg.body.scan_info.ies = kmalloc(IEsLen, GFP_KERNEL);
- memcpy(msg.body.scan_info.ies, ies, IEsLen);
+ msg.body.scan_info.ies_len = ies_len;
+ msg.body.scan_info.ies = kmalloc(ies_len, GFP_KERNEL);
+ memcpy(msg.body.scan_info.ies, ies, ies_len);
result = wilc_mq_send(&hif_msg_q, &msg, sizeof(struct host_if_msg));
if (result) {
diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h
index b7bcd93..ed00f9d 100644
--- a/drivers/staging/wilc1000/host_interface.h
+++ b/drivers/staging/wilc1000/host_interface.h
@@ -337,7 +337,7 @@ int wilc_set_mac_chnl_num(struct wilc_vif *vif, u8 channel);
int wilc_get_rssi(struct wilc_vif *vif, s8 *rssi_level);
int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
u8 *ch_freq_list, u8 ch_list_len, const u8 *ies,
- size_t IEsLen, wilc_scan_result ScanResult, void *pvUserArg,
+ size_t ies_len, wilc_scan_result ScanResult, void *pvUserArg,
struct hidden_network *pstrHiddenNetwork);
int wilc_hif_set_cfg(struct wilc_vif *vif,
struct cfg_param_val *cfg_param);
--
2.6.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 08/13] staging: wilc1000: rename ScanResult in wilc_scan
2016-01-05 14:06 [PATCH 01/13] staging: wilc1000: fix return type of wilc_scan Chaehyun Lim
` (5 preceding siblings ...)
2016-01-05 14:06 ` [PATCH 07/13] staging: wilc1000: rename IEsLen " Chaehyun Lim
@ 2016-01-05 14:06 ` Chaehyun Lim
2016-01-05 14:06 ` [PATCH 09/13] staging: wilc1000: rename pvUserArg " Chaehyun Lim
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Chaehyun Lim @ 2016-01-05 14:06 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
This patch renames ScanResult to scan_result to avoid camelcase.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/host_interface.c | 8 ++++----
drivers/staging/wilc1000/host_interface.h | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 67d0d14..a1e9052 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -3674,15 +3674,15 @@ int wilc_get_statistics(struct wilc_vif *vif, struct rf_info *stats)
int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
u8 *ch_freq_list, u8 ch_list_len, const u8 *ies,
- size_t ies_len, wilc_scan_result ScanResult, void *pvUserArg,
+ size_t ies_len, wilc_scan_result scan_result, void *pvUserArg,
struct hidden_network *pstrHiddenNetwork)
{
int result = 0;
struct host_if_msg msg;
struct host_if_drv *hif_drv = vif->hif_drv;
- if (!hif_drv || !ScanResult) {
- PRINT_ER("hif_drv or ScanResult = NULL\n");
+ if (!hif_drv || !scan_result) {
+ PRINT_ER("hif_drv or scan_result = NULL\n");
return -EFAULT;
}
@@ -3700,7 +3700,7 @@ int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
msg.vif = vif;
msg.body.scan_info.src = scan_source;
msg.body.scan_info.type = scan_type;
- msg.body.scan_info.result = ScanResult;
+ msg.body.scan_info.result = scan_result;
msg.body.scan_info.arg = pvUserArg;
msg.body.scan_info.ch_list_len = ch_list_len;
diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h
index ed00f9d..fd9f21739 100644
--- a/drivers/staging/wilc1000/host_interface.h
+++ b/drivers/staging/wilc1000/host_interface.h
@@ -337,7 +337,7 @@ int wilc_set_mac_chnl_num(struct wilc_vif *vif, u8 channel);
int wilc_get_rssi(struct wilc_vif *vif, s8 *rssi_level);
int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
u8 *ch_freq_list, u8 ch_list_len, const u8 *ies,
- size_t ies_len, wilc_scan_result ScanResult, void *pvUserArg,
+ size_t ies_len, wilc_scan_result scan_result, void *pvUserArg,
struct hidden_network *pstrHiddenNetwork);
int wilc_hif_set_cfg(struct wilc_vif *vif,
struct cfg_param_val *cfg_param);
--
2.6.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 09/13] staging: wilc1000: rename pvUserArg in wilc_scan
2016-01-05 14:06 [PATCH 01/13] staging: wilc1000: fix return type of wilc_scan Chaehyun Lim
` (6 preceding siblings ...)
2016-01-05 14:06 ` [PATCH 08/13] staging: wilc1000: rename ScanResult " Chaehyun Lim
@ 2016-01-05 14:06 ` Chaehyun Lim
2016-01-05 14:06 ` [PATCH 10/13] staging: wilc1000: rename pstrHiddenNetwork " Chaehyun Lim
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Chaehyun Lim @ 2016-01-05 14:06 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
This patch renames pvUserArg to user_arg to avoid camelcase.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/host_interface.c | 4 ++--
drivers/staging/wilc1000/host_interface.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index a1e9052..1e27431 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -3674,7 +3674,7 @@ int wilc_get_statistics(struct wilc_vif *vif, struct rf_info *stats)
int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
u8 *ch_freq_list, u8 ch_list_len, const u8 *ies,
- size_t ies_len, wilc_scan_result scan_result, void *pvUserArg,
+ size_t ies_len, wilc_scan_result scan_result, void *user_arg,
struct hidden_network *pstrHiddenNetwork)
{
int result = 0;
@@ -3701,7 +3701,7 @@ int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
msg.body.scan_info.src = scan_source;
msg.body.scan_info.type = scan_type;
msg.body.scan_info.result = scan_result;
- msg.body.scan_info.arg = pvUserArg;
+ msg.body.scan_info.arg = user_arg;
msg.body.scan_info.ch_list_len = ch_list_len;
msg.body.scan_info.ch_freq_list = kmalloc(ch_list_len, GFP_KERNEL);
diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h
index fd9f21739..693a3f5 100644
--- a/drivers/staging/wilc1000/host_interface.h
+++ b/drivers/staging/wilc1000/host_interface.h
@@ -337,7 +337,7 @@ int wilc_set_mac_chnl_num(struct wilc_vif *vif, u8 channel);
int wilc_get_rssi(struct wilc_vif *vif, s8 *rssi_level);
int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
u8 *ch_freq_list, u8 ch_list_len, const u8 *ies,
- size_t ies_len, wilc_scan_result scan_result, void *pvUserArg,
+ size_t ies_len, wilc_scan_result scan_result, void *user_arg,
struct hidden_network *pstrHiddenNetwork);
int wilc_hif_set_cfg(struct wilc_vif *vif,
struct cfg_param_val *cfg_param);
--
2.6.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 10/13] staging: wilc1000: rename pstrHiddenNetwork in wilc_scan
2016-01-05 14:06 [PATCH 01/13] staging: wilc1000: fix return type of wilc_scan Chaehyun Lim
` (7 preceding siblings ...)
2016-01-05 14:06 ` [PATCH 09/13] staging: wilc1000: rename pvUserArg " Chaehyun Lim
@ 2016-01-05 14:06 ` Chaehyun Lim
2016-01-05 14:06 ` [PATCH 11/13] staging: wilc1000: use kmemdup instead of kmalloc/memcpy Chaehyun Lim
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Chaehyun Lim @ 2016-01-05 14:06 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
This patch renames pstrHiddenNetwork to hidden_network to avoid
camelcase.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/host_interface.c | 10 +++++-----
drivers/staging/wilc1000/host_interface.h | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 1e27431..85aae56 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -3675,7 +3675,7 @@ int wilc_get_statistics(struct wilc_vif *vif, struct rf_info *stats)
int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
u8 *ch_freq_list, u8 ch_list_len, const u8 *ies,
size_t ies_len, wilc_scan_result scan_result, void *user_arg,
- struct hidden_network *pstrHiddenNetwork)
+ struct hidden_network *hidden_network)
{
int result = 0;
struct host_if_msg msg;
@@ -3690,12 +3690,12 @@ int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
msg.id = HOST_IF_MSG_SCAN;
- if (pstrHiddenNetwork) {
- msg.body.scan_info.hidden_network.net_info = pstrHiddenNetwork->net_info;
- msg.body.scan_info.hidden_network.n_ssids = pstrHiddenNetwork->n_ssids;
+ if (hidden_network) {
+ msg.body.scan_info.hidden_network.net_info = hidden_network->net_info;
+ msg.body.scan_info.hidden_network.n_ssids = hidden_network->n_ssids;
} else
- PRINT_D(HOSTINF_DBG, "pstrHiddenNetwork IS EQUAL TO NULL\n");
+ PRINT_D(HOSTINF_DBG, "hidden_network IS EQUAL TO NULL\n");
msg.vif = vif;
msg.body.scan_info.src = scan_source;
diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h
index 693a3f5..b58c33a 100644
--- a/drivers/staging/wilc1000/host_interface.h
+++ b/drivers/staging/wilc1000/host_interface.h
@@ -338,7 +338,7 @@ int wilc_get_rssi(struct wilc_vif *vif, s8 *rssi_level);
int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
u8 *ch_freq_list, u8 ch_list_len, const u8 *ies,
size_t ies_len, wilc_scan_result scan_result, void *user_arg,
- struct hidden_network *pstrHiddenNetwork);
+ struct hidden_network *hidden_network);
int wilc_hif_set_cfg(struct wilc_vif *vif,
struct cfg_param_val *cfg_param);
s32 wilc_init(struct net_device *dev, struct host_if_drv **phWFIDrv);
--
2.6.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 11/13] staging: wilc1000: use kmemdup instead of kmalloc/memcpy
2016-01-05 14:06 [PATCH 01/13] staging: wilc1000: fix return type of wilc_scan Chaehyun Lim
` (8 preceding siblings ...)
2016-01-05 14:06 ` [PATCH 10/13] staging: wilc1000: rename pstrHiddenNetwork " Chaehyun Lim
@ 2016-01-05 14:06 ` Chaehyun Lim
2016-01-05 14:06 ` [PATCH 12/13] staging: wilc1000: rename phWFIDrv in wilc_init declaration Chaehyun Lim
2016-01-05 14:06 ` [PATCH 13/13] staging: wilc1000: fix return type of wilc_init Chaehyun Lim
11 siblings, 0 replies; 13+ messages in thread
From: Chaehyun Lim @ 2016-01-05 14:06 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
This patch replaces kmalloc followed by memcpy with kmemdup.
It is also added error checking to return -ENOMEM when kmemdup is
failed.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/host_interface.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 85aae56..8d022a0 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -3704,12 +3704,16 @@ int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
msg.body.scan_info.arg = user_arg;
msg.body.scan_info.ch_list_len = ch_list_len;
- msg.body.scan_info.ch_freq_list = kmalloc(ch_list_len, GFP_KERNEL);
- memcpy(msg.body.scan_info.ch_freq_list, ch_freq_list, ch_list_len);
+ msg.body.scan_info.ch_freq_list = kmemdup(ch_freq_list,
+ ch_list_len,
+ GFP_KERNEL);
+ if (!msg.body.scan_info.ch_freq_list)
+ return -ENOMEM;
msg.body.scan_info.ies_len = ies_len;
- msg.body.scan_info.ies = kmalloc(ies_len, GFP_KERNEL);
- memcpy(msg.body.scan_info.ies, ies, ies_len);
+ msg.body.scan_info.ies = kmemdup(ies, ies_len, GFP_KERNEL);
+ if (!msg.body.scan_info.ies)
+ return -ENOMEM;
result = wilc_mq_send(&hif_msg_q, &msg, sizeof(struct host_if_msg));
if (result) {
--
2.6.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 12/13] staging: wilc1000: rename phWFIDrv in wilc_init declaration
2016-01-05 14:06 [PATCH 01/13] staging: wilc1000: fix return type of wilc_scan Chaehyun Lim
` (9 preceding siblings ...)
2016-01-05 14:06 ` [PATCH 11/13] staging: wilc1000: use kmemdup instead of kmalloc/memcpy Chaehyun Lim
@ 2016-01-05 14:06 ` Chaehyun Lim
2016-01-05 14:06 ` [PATCH 13/13] staging: wilc1000: fix return type of wilc_init Chaehyun Lim
11 siblings, 0 replies; 13+ messages in thread
From: Chaehyun Lim @ 2016-01-05 14:06 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
The second argument name is different between wilc_init declaration and
definition. This patch renames phWFIDrv to hif_drv_handler to match
argument name.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/host_interface.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h
index b58c33a..e2d5ee2 100644
--- a/drivers/staging/wilc1000/host_interface.h
+++ b/drivers/staging/wilc1000/host_interface.h
@@ -341,7 +341,7 @@ int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
struct hidden_network *hidden_network);
int wilc_hif_set_cfg(struct wilc_vif *vif,
struct cfg_param_val *cfg_param);
-s32 wilc_init(struct net_device *dev, struct host_if_drv **phWFIDrv);
+s32 wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler);
int wilc_deinit(struct wilc_vif *vif);
int wilc_add_beacon(struct wilc_vif *vif, u32 interval, u32 dtim_period,
u32 head_len, u8 *head, u32 tail_len, u8 *tail);
--
2.6.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 13/13] staging: wilc1000: fix return type of wilc_init
2016-01-05 14:06 [PATCH 01/13] staging: wilc1000: fix return type of wilc_scan Chaehyun Lim
` (10 preceding siblings ...)
2016-01-05 14:06 ` [PATCH 12/13] staging: wilc1000: rename phWFIDrv in wilc_init declaration Chaehyun Lim
@ 2016-01-05 14:06 ` Chaehyun Lim
11 siblings, 0 replies; 13+ messages in thread
From: Chaehyun Lim @ 2016-01-05 14:06 UTC (permalink / raw)
To: gregkh
Cc: johnny.kim, austin.shin, chris.park, tony.cho, glen.lee, leo.kim,
linux-wireless, devel, Chaehyun Lim
This patch changes return type of wilc_init from s32 to int.
The error code as -ENOMEM or -EFAULT is returned in the wilc_init.
It is better to use return type of int in this function, not s32.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
drivers/staging/wilc1000/host_interface.c | 4 ++--
drivers/staging/wilc1000/host_interface.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 8d022a0..5fac516 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -3779,9 +3779,9 @@ static void GetPeriodicRSSI(unsigned long arg)
mod_timer(&periodic_rssi, jiffies + msecs_to_jiffies(5000));
}
-s32 wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler)
+int wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler)
{
- s32 result = 0;
+ int result = 0;
struct host_if_drv *hif_drv;
struct wilc_vif *vif;
struct wilc *wilc;
diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h
index e2d5ee2..f4e6839 100644
--- a/drivers/staging/wilc1000/host_interface.h
+++ b/drivers/staging/wilc1000/host_interface.h
@@ -341,7 +341,7 @@ int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
struct hidden_network *hidden_network);
int wilc_hif_set_cfg(struct wilc_vif *vif,
struct cfg_param_val *cfg_param);
-s32 wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler);
+int wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler);
int wilc_deinit(struct wilc_vif *vif);
int wilc_add_beacon(struct wilc_vif *vif, u32 interval, u32 dtim_period,
u32 head_len, u8 *head, u32 tail_len, u8 *tail);
--
2.6.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
end of thread, other threads:[~2016-01-05 14:07 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-05 14:06 [PATCH 01/13] staging: wilc1000: fix return type of wilc_scan Chaehyun Lim
2016-01-05 14:06 ` [PATCH 02/13] staging: wilc1000: rename u8ScanSource in wilc_scan Chaehyun Lim
2016-01-05 14:06 ` [PATCH 03/13] staging: wilc1000: rename u8ScanType " Chaehyun Lim
2016-01-05 14:06 ` [PATCH 04/13] staging: wilc1000: rename pu8ChnlFreqList " Chaehyun Lim
2016-01-05 14:06 ` [PATCH 05/13] staging: wilc1000: rename u8ChnlListLen " Chaehyun Lim
2016-01-05 14:06 ` [PATCH 06/13] staging: wilc1000: rename pu8IEs " Chaehyun Lim
2016-01-05 14:06 ` [PATCH 07/13] staging: wilc1000: rename IEsLen " Chaehyun Lim
2016-01-05 14:06 ` [PATCH 08/13] staging: wilc1000: rename ScanResult " Chaehyun Lim
2016-01-05 14:06 ` [PATCH 09/13] staging: wilc1000: rename pvUserArg " Chaehyun Lim
2016-01-05 14:06 ` [PATCH 10/13] staging: wilc1000: rename pstrHiddenNetwork " Chaehyun Lim
2016-01-05 14:06 ` [PATCH 11/13] staging: wilc1000: use kmemdup instead of kmalloc/memcpy Chaehyun Lim
2016-01-05 14:06 ` [PATCH 12/13] staging: wilc1000: rename phWFIDrv in wilc_init declaration Chaehyun Lim
2016-01-05 14:06 ` [PATCH 13/13] staging: wilc1000: fix return type of wilc_init Chaehyun Lim
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.