wlan: fix for SENDACTIONFRAME dwell time check
in SENDACTIONFRAME dwell time can be zero. Due to wrong
sanity check correct SENDACTIONFRAME command was failing.
CRs-Fixed: 618894
Change-Id: Id89734c8a05f9ea664e095cd1d78d22af2501467
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index aa98fe2..4c97f63 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -4142,7 +4142,7 @@
if (1 != v) return -EINVAL;
v = kstrtos32(tempBuf, 10, &tempInt);
- if ( v < 0 || tempInt <= 0 || tempInt > WNI_CFG_CURRENT_CHANNEL_STAMAX )
+ if ( v < 0 || tempInt < 0 || tempInt > WNI_CFG_CURRENT_CHANNEL_STAMAX )
return -EINVAL;
*pChannel = tempInt;