Commit 81a59506 authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman

staging: wilc1000: rename hConnectTimer of struct host_if_drv

This patch renames hConnectTimer of struct host_if_drv to connect_timer
to avoid CamelCase naming convention.
Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarGlen Lee <glen.lee@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 13b313e4
...@@ -1223,7 +1223,7 @@ static s32 Handle_Connect(struct host_if_drv *hif_drv, ...@@ -1223,7 +1223,7 @@ static s32 Handle_Connect(struct host_if_drv *hif_drv,
if (result) { if (result) {
tstrConnectInfo strConnectInfo; tstrConnectInfo strConnectInfo;
del_timer(&hif_drv->hConnectTimer); del_timer(&hif_drv->connect_timer);
PRINT_D(HOSTINF_DBG, "could not start connecting to the required network\n"); PRINT_D(HOSTINF_DBG, "could not start connecting to the required network\n");
...@@ -1594,7 +1594,7 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct host_if_drv *hif_drv, ...@@ -1594,7 +1594,7 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct host_if_drv *hif_drv,
hif_drv->usr_conn_req.ConnReqIEsLen); hif_drv->usr_conn_req.ConnReqIEsLen);
} }
del_timer(&hif_drv->hConnectTimer); del_timer(&hif_drv->connect_timer);
hif_drv->usr_conn_req.pfUserConnectResult(CONN_DISCONN_EVENT_CONN_RESP, hif_drv->usr_conn_req.pfUserConnectResult(CONN_DISCONN_EVENT_CONN_RESP,
&strConnectInfo, &strConnectInfo,
u8MacStatus, u8MacStatus,
...@@ -2009,7 +2009,7 @@ static void Handle_Disconnect(struct host_if_drv *hif_drv) ...@@ -2009,7 +2009,7 @@ static void Handle_Disconnect(struct host_if_drv *hif_drv)
if (hif_drv->usr_conn_req.pfUserConnectResult) { if (hif_drv->usr_conn_req.pfUserConnectResult) {
if (hif_drv->hif_state == HOST_IF_WAITING_CONN_RESP) { if (hif_drv->hif_state == HOST_IF_WAITING_CONN_RESP) {
PRINT_D(HOSTINF_DBG, "Upper layer requested termination of connection\n"); PRINT_D(HOSTINF_DBG, "Upper layer requested termination of connection\n");
del_timer(&hif_drv->hConnectTimer); del_timer(&hif_drv->connect_timer);
} }
hif_drv->usr_conn_req.pfUserConnectResult(CONN_DISCONN_EVENT_DISCONN_NOTIF, NULL, hif_drv->usr_conn_req.pfUserConnectResult(CONN_DISCONN_EVENT_DISCONN_NOTIF, NULL,
...@@ -3512,8 +3512,8 @@ s32 host_int_set_join_req(struct host_if_drv *hif_drv, u8 *pu8bssid, ...@@ -3512,8 +3512,8 @@ s32 host_int_set_join_req(struct host_if_drv *hif_drv, u8 *pu8bssid,
return -EFAULT; return -EFAULT;
} }
hif_drv->hConnectTimer.data = (unsigned long)hif_drv; hif_drv->connect_timer.data = (unsigned long)hif_drv;
mod_timer(&hif_drv->hConnectTimer, mod_timer(&hif_drv->connect_timer,
jiffies + msecs_to_jiffies(HOST_IF_CONNECT_TIMEOUT)); jiffies + msecs_to_jiffies(HOST_IF_CONNECT_TIMEOUT));
return result; return result;
...@@ -4138,8 +4138,7 @@ s32 host_int_init(struct net_device *dev, struct host_if_drv **hif_drv_handler) ...@@ -4138,8 +4138,7 @@ s32 host_int_init(struct net_device *dev, struct host_if_drv **hif_drv_handler)
} }
setup_timer(&hif_drv->scan_timer, TimerCB_Scan, 0); setup_timer(&hif_drv->scan_timer, TimerCB_Scan, 0);
setup_timer(&hif_drv->hConnectTimer, TimerCB_Connect, 0); setup_timer(&hif_drv->connect_timer, TimerCB_Connect, 0);
setup_timer(&hif_drv->hRemainOnChannel, ListenTimerCB, 0); setup_timer(&hif_drv->hRemainOnChannel, ListenTimerCB, 0);
sema_init(&hif_drv->sem_cfg_values, 1); sema_init(&hif_drv->sem_cfg_values, 1);
...@@ -4169,7 +4168,7 @@ s32 host_int_init(struct net_device *dev, struct host_if_drv **hif_drv_handler) ...@@ -4169,7 +4168,7 @@ s32 host_int_init(struct net_device *dev, struct host_if_drv **hif_drv_handler)
_fail_timer_2: _fail_timer_2:
up(&hif_drv->sem_cfg_values); up(&hif_drv->sem_cfg_values);
del_timer_sync(&hif_drv->hConnectTimer); del_timer_sync(&hif_drv->connect_timer);
del_timer_sync(&hif_drv->scan_timer); del_timer_sync(&hif_drv->scan_timer);
kthread_stop(hif_thread_handler); kthread_stop(hif_thread_handler);
_fail_mq_: _fail_mq_:
...@@ -4197,7 +4196,7 @@ s32 host_int_deinit(struct host_if_drv *hif_drv) ...@@ -4197,7 +4196,7 @@ s32 host_int_deinit(struct host_if_drv *hif_drv)
if (del_timer_sync(&hif_drv->scan_timer)) if (del_timer_sync(&hif_drv->scan_timer))
PRINT_D(HOSTINF_DBG, ">> Scan timer is active\n"); PRINT_D(HOSTINF_DBG, ">> Scan timer is active\n");
if (del_timer_sync(&hif_drv->hConnectTimer)) if (del_timer_sync(&hif_drv->connect_timer))
PRINT_D(HOSTINF_DBG, ">> Connect timer is active\n"); PRINT_D(HOSTINF_DBG, ">> Connect timer is active\n");
if (del_timer_sync(&periodic_rssi)) if (del_timer_sync(&periodic_rssi))
......
...@@ -313,7 +313,7 @@ struct host_if_drv { ...@@ -313,7 +313,7 @@ struct host_if_drv {
struct semaphore sem_inactive_time; struct semaphore sem_inactive_time;
struct timer_list scan_timer; struct timer_list scan_timer;
struct timer_list hConnectTimer; struct timer_list connect_timer;
struct timer_list hRemainOnChannel; struct timer_list hRemainOnChannel;
bool IFC_UP; bool IFC_UP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment