qcacld-3.0: Allow P2P listen offload count to be 0
0 is a valid value for P2P listen offload start command.
Change-Id: I015898073712678e5fcb5b016d25cdf1598568e0
CRs-fixed: 1109621
diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c
index 5bf91c6..caeb2e9 100644
--- a/core/hdd/src/wlan_hdd_cfg80211.c
+++ b/core/hdd/src/wlan_hdd_cfg80211.c
@@ -6171,7 +6171,7 @@
params.count = nla_get_u32(tb
[QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT]);
- if (!((params.count > 0) && (params.count < UINT_MAX))) {
+ if (!((params.count >= 0) && (params.count < UINT_MAX))) {
hdd_err("Invalid count: %d", params.count);
return -EINVAL;
}