Commit 13b313e4 authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman

staging: wilc1000: rename hScanTimer of struct host_if_drv

This patch renames hScanTimer of struct host_if_drv to scan_timer
to avoid CamelCase naming convention.
And, remove the relation comment.
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 569a3c67
...@@ -921,7 +921,7 @@ static s32 Handle_Scan(struct host_if_drv *hif_drv, ...@@ -921,7 +921,7 @@ static s32 Handle_Scan(struct host_if_drv *hif_drv,
ERRORHANDLER: ERRORHANDLER:
if (result) { if (result) {
del_timer(&hif_drv->hScanTimer); del_timer(&hif_drv->scan_timer);
Handle_ScanDone(hif_drv, SCAN_EVENT_ABORTED); Handle_ScanDone(hif_drv, SCAN_EVENT_ABORTED);
} }
...@@ -1636,7 +1636,7 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct host_if_drv *hif_drv, ...@@ -1636,7 +1636,7 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct host_if_drv *hif_drv,
if (hif_drv->usr_scan_req.pfUserScanResult) { if (hif_drv->usr_scan_req.pfUserScanResult) {
PRINT_D(HOSTINF_DBG, "\n\n<< Abort the running OBSS Scan >>\n\n"); PRINT_D(HOSTINF_DBG, "\n\n<< Abort the running OBSS Scan >>\n\n");
del_timer(&hif_drv->hScanTimer); del_timer(&hif_drv->scan_timer);
Handle_ScanDone((void *)hif_drv, SCAN_EVENT_ABORTED); Handle_ScanDone((void *)hif_drv, SCAN_EVENT_ABORTED);
} }
...@@ -1683,7 +1683,7 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct host_if_drv *hif_drv, ...@@ -1683,7 +1683,7 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct host_if_drv *hif_drv,
PRINT_D(HOSTINF_DBG, "Received MAC_DISCONNECTED from the FW while scanning\n"); PRINT_D(HOSTINF_DBG, "Received MAC_DISCONNECTED from the FW while scanning\n");
PRINT_D(HOSTINF_DBG, "\n\n<< Abort the running Scan >>\n\n"); PRINT_D(HOSTINF_DBG, "\n\n<< Abort the running Scan >>\n\n");
del_timer(&hif_drv->hScanTimer); del_timer(&hif_drv->scan_timer);
if (hif_drv->usr_scan_req.pfUserScanResult) if (hif_drv->usr_scan_req.pfUserScanResult)
Handle_ScanDone(hif_drv, SCAN_EVENT_ABORTED); Handle_ScanDone(hif_drv, SCAN_EVENT_ABORTED);
} }
...@@ -1999,7 +1999,7 @@ static void Handle_Disconnect(struct host_if_drv *hif_drv) ...@@ -1999,7 +1999,7 @@ static void Handle_Disconnect(struct host_if_drv *hif_drv)
strDisconnectNotifInfo.ie_len = 0; strDisconnectNotifInfo.ie_len = 0;
if (hif_drv->usr_scan_req.pfUserScanResult) { if (hif_drv->usr_scan_req.pfUserScanResult) {
del_timer(&hif_drv->hScanTimer); del_timer(&hif_drv->scan_timer);
hif_drv->usr_scan_req.pfUserScanResult(SCAN_EVENT_ABORTED, NULL, hif_drv->usr_scan_req.pfUserScanResult(SCAN_EVENT_ABORTED, NULL,
hif_drv->usr_scan_req.u32UserScanPvoid, NULL); hif_drv->usr_scan_req.u32UserScanPvoid, NULL);
...@@ -2881,7 +2881,7 @@ static int hostIFthread(void *pvArg) ...@@ -2881,7 +2881,7 @@ static int hostIFthread(void *pvArg)
break; break;
case HOST_IF_MSG_RCVD_SCAN_COMPLETE: case HOST_IF_MSG_RCVD_SCAN_COMPLETE:
del_timer(&hif_drv->hScanTimer); del_timer(&hif_drv->scan_timer);
PRINT_D(HOSTINF_DBG, "scan completed successfully\n"); PRINT_D(HOSTINF_DBG, "scan completed successfully\n");
if (!linux_wlan_get_num_conn_ifcs()) if (!linux_wlan_get_num_conn_ifcs())
...@@ -3920,8 +3920,8 @@ s32 host_int_scan(struct host_if_drv *hif_drv, u8 u8ScanSource, ...@@ -3920,8 +3920,8 @@ s32 host_int_scan(struct host_if_drv *hif_drv, u8 u8ScanSource,
} }
PRINT_D(HOSTINF_DBG, ">> Starting the SCAN timer\n"); PRINT_D(HOSTINF_DBG, ">> Starting the SCAN timer\n");
hif_drv->hScanTimer.data = (unsigned long)hif_drv; hif_drv->scan_timer.data = (unsigned long)hif_drv;
mod_timer(&hif_drv->hScanTimer, mod_timer(&hif_drv->scan_timer,
jiffies + msecs_to_jiffies(HOST_IF_SCAN_TIMEOUT)); jiffies + msecs_to_jiffies(HOST_IF_SCAN_TIMEOUT));
return result; return result;
...@@ -4137,8 +4137,7 @@ s32 host_int_init(struct net_device *dev, struct host_if_drv **hif_drv_handler) ...@@ -4137,8 +4137,7 @@ s32 host_int_init(struct net_device *dev, struct host_if_drv **hif_drv_handler)
mod_timer(&periodic_rssi, jiffies + msecs_to_jiffies(5000)); mod_timer(&periodic_rssi, jiffies + msecs_to_jiffies(5000));
} }
setup_timer(&hif_drv->hScanTimer, TimerCB_Scan, 0); setup_timer(&hif_drv->scan_timer, TimerCB_Scan, 0);
setup_timer(&hif_drv->hConnectTimer, TimerCB_Connect, 0); setup_timer(&hif_drv->hConnectTimer, TimerCB_Connect, 0);
setup_timer(&hif_drv->hRemainOnChannel, ListenTimerCB, 0); setup_timer(&hif_drv->hRemainOnChannel, ListenTimerCB, 0);
...@@ -4171,7 +4170,7 @@ s32 host_int_init(struct net_device *dev, struct host_if_drv **hif_drv_handler) ...@@ -4171,7 +4170,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->hConnectTimer);
del_timer_sync(&hif_drv->hScanTimer); del_timer_sync(&hif_drv->scan_timer);
kthread_stop(hif_thread_handler); kthread_stop(hif_thread_handler);
_fail_mq_: _fail_mq_:
wilc_mq_destroy(&hif_msg_q); wilc_mq_destroy(&hif_msg_q);
...@@ -4195,7 +4194,7 @@ s32 host_int_deinit(struct host_if_drv *hif_drv) ...@@ -4195,7 +4194,7 @@ s32 host_int_deinit(struct host_if_drv *hif_drv)
terminated_handle = hif_drv; terminated_handle = hif_drv;
PRINT_D(HOSTINF_DBG, "De-initializing host interface for client %d\n", clients_count); PRINT_D(HOSTINF_DBG, "De-initializing host interface for client %d\n", clients_count);
if (del_timer_sync(&hif_drv->hScanTimer)) 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->hConnectTimer))
......
...@@ -311,8 +311,8 @@ struct host_if_drv { ...@@ -311,8 +311,8 @@ struct host_if_drv {
struct semaphore sem_get_link_speed; struct semaphore sem_get_link_speed;
struct semaphore sem_get_chnl; struct semaphore sem_get_chnl;
struct semaphore sem_inactive_time; struct semaphore sem_inactive_time;
/* timer handlers */
struct timer_list hScanTimer; struct timer_list scan_timer;
struct timer_list hConnectTimer; struct timer_list hConnectTimer;
struct timer_list hRemainOnChannel; struct timer_list hRemainOnChannel;
......
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