Commit f192c2bd authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman

staging: ath6kl: Convert bypasswmi to bool

Types should match logical uses.
Remove unused extern, make static.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Acked-by: default avatarVipin Mehta <vipin.mehta@atheros.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ae8e1e7a
...@@ -123,7 +123,7 @@ int bmienable = BMIENABLE_DEFAULT; ...@@ -123,7 +123,7 @@ int bmienable = BMIENABLE_DEFAULT;
char ifname[IFNAMSIZ] = {0,}; char ifname[IFNAMSIZ] = {0,};
int wlaninitmode = WLAN_INIT_MODE_DEFAULT; int wlaninitmode = WLAN_INIT_MODE_DEFAULT;
unsigned int bypasswmi = 0; static bool bypasswmi;
unsigned int debuglevel = 0; unsigned int debuglevel = 0;
int tspecCompliance = ATHEROS_COMPLIANCE; int tspecCompliance = ATHEROS_COMPLIANCE;
unsigned int busspeedlow = 0; unsigned int busspeedlow = 0;
...@@ -165,7 +165,7 @@ unsigned int eppingtest=0; ...@@ -165,7 +165,7 @@ unsigned int eppingtest=0;
module_param_string(ifname, ifname, sizeof(ifname), 0644); module_param_string(ifname, ifname, sizeof(ifname), 0644);
module_param(wlaninitmode, int, 0644); module_param(wlaninitmode, int, 0644);
module_param(bmienable, int, 0644); module_param(bmienable, int, 0644);
module_param(bypasswmi, uint, 0644); module_param(bypasswmi, bool, 0644);
module_param(debuglevel, uint, 0644); module_param(debuglevel, uint, 0644);
module_param(tspecCompliance, int, 0644); module_param(tspecCompliance, int, 0644);
module_param(onebitmode, uint, 0644); module_param(onebitmode, uint, 0644);
...@@ -1024,7 +1024,7 @@ ar6000_transfer_bin_file(AR_SOFTC_T *ar, AR6K_BIN_FILE file, A_UINT32 address, A ...@@ -1024,7 +1024,7 @@ ar6000_transfer_bin_file(AR_SOFTC_T *ar, AR6K_BIN_FILE file, A_UINT32 address, A
} }
if (eppingtest) { if (eppingtest) {
bypasswmi = TRUE; bypasswmi = true;
if (ar->arVersion.target_ver == AR6003_REV1_VERSION) { if (ar->arVersion.target_ver == AR6003_REV1_VERSION) {
filename = AR6003_REV1_EPPING_FIRMWARE_FILE; filename = AR6003_REV1_EPPING_FIRMWARE_FILE;
} else if (ar->arVersion.target_ver == AR6003_REV2_VERSION) { } else if (ar->arVersion.target_ver == AR6003_REV2_VERSION) {
...@@ -3512,7 +3512,7 @@ ar6000_tx_complete(void *Context, HTC_PACKET_QUEUE *pPacketQueue) ...@@ -3512,7 +3512,7 @@ ar6000_tx_complete(void *Context, HTC_PACKET_QUEUE *pPacketQueue)
A_NETBUF_FREE(pktSkb); A_NETBUF_FREE(pktSkb);
} }
if ((ar->arConnected == TRUE) || (bypasswmi)) { if ((ar->arConnected == TRUE) || bypasswmi) {
if (!flushing) { if (!flushing) {
/* don't wake the queue if we are flushing, other wise it will just /* don't wake the queue if we are flushing, other wise it will just
* keep queueing packets, which will keep failing */ * keep queueing packets, which will keep failing */
......
...@@ -34,7 +34,6 @@ extern unsigned int wmitimeout; ...@@ -34,7 +34,6 @@ extern unsigned int wmitimeout;
extern A_WAITQUEUE_HEAD arEvent; extern A_WAITQUEUE_HEAD arEvent;
extern int tspecCompliance; extern int tspecCompliance;
extern int bmienable; extern int bmienable;
extern int bypasswmi;
extern int loghci; extern int loghci;
static int static int
......
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