Commit 4f939ed4 authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: rename P2P_LISTEN_STATE variable to use lowercase

Rename P2P_LISTEN_STATE variable to avoid using uppercase for variable
name to follow linux coding style.
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 02e25860
...@@ -229,7 +229,7 @@ struct join_bss_param { ...@@ -229,7 +229,7 @@ struct join_bss_param {
static struct host_if_drv *terminated_handle; static struct host_if_drv *terminated_handle;
bool wilc_optaining_ip; bool wilc_optaining_ip;
static u8 P2P_LISTEN_STATE; static u8 p2p_listen_state;
static struct workqueue_struct *hif_workqueue; static struct workqueue_struct *hif_workqueue;
static struct completion hif_thread_comp; static struct completion hif_thread_comp;
static struct completion hif_driver_comp; static struct completion hif_driver_comp;
...@@ -2245,7 +2245,7 @@ static int handle_remain_on_chan(struct wilc_vif *vif, ...@@ -2245,7 +2245,7 @@ static int handle_remain_on_chan(struct wilc_vif *vif,
error: error:
{ {
P2P_LISTEN_STATE = 1; p2p_listen_state = 1;
hif_drv->remain_on_ch_timer_vif = vif; hif_drv->remain_on_ch_timer_vif = vif;
mod_timer(&hif_drv->remain_on_ch_timer, mod_timer(&hif_drv->remain_on_ch_timer,
jiffies + jiffies +
...@@ -2301,7 +2301,7 @@ static u32 handle_listen_state_expired(struct wilc_vif *vif, ...@@ -2301,7 +2301,7 @@ static u32 handle_listen_state_expired(struct wilc_vif *vif,
s32 result = 0; s32 result = 0;
struct host_if_drv *hif_drv = vif->hif_drv; struct host_if_drv *hif_drv = vif->hif_drv;
if (P2P_LISTEN_STATE) { if (p2p_listen_state) {
remain_on_chan_flag = false; remain_on_chan_flag = false;
wid.id = (u16)WID_REMAIN_ON_CHAN; wid.id = (u16)WID_REMAIN_ON_CHAN;
wid.type = WID_STR; wid.type = WID_STR;
...@@ -2326,7 +2326,7 @@ static u32 handle_listen_state_expired(struct wilc_vif *vif, ...@@ -2326,7 +2326,7 @@ static u32 handle_listen_state_expired(struct wilc_vif *vif,
hif_drv->remain_on_ch.expired(hif_drv->remain_on_ch.arg, hif_drv->remain_on_ch.expired(hif_drv->remain_on_ch.arg,
hif_remain_ch->id); hif_remain_ch->id);
} }
P2P_LISTEN_STATE = 0; p2p_listen_state = 0;
} else { } else {
netdev_dbg(vif->ndev, "Not in listen state\n"); netdev_dbg(vif->ndev, "Not in listen state\n");
result = -EFAULT; result = -EFAULT;
......
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