This patch adds new define, IDLE_MODE to change comparison statement which
is wrong due to typecasting to null.
Signed-off-by: Johnny Kim <johnny.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
get_id_from_handler(pstrWFIDrv));
- if ((pstrHostIfSetOperationMode->u32Mode) == (u32)NULL)
+ if ((pstrHostIfSetOperationMode->u32Mode) == IDLE_MODE)
up(&hSemDeinitDrvHandle);
#define BIT1 ((u32)(1 << 1))
#define BIT0 ((u32)(1 << 0))
+#define IDLE_MODE 0x00
#define AP_MODE 0x01
#define STATION_MODE 0x02
#define GO_MODE 0x03