Merge 060f6b5f57fe1c89409a91da54d4307c7bd16503 on remote branch
Change-Id: Ifa9890b82d2f214508f24dc96a94b6e43138c7d3
diff --git a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211_sr.c b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211_sr.c
index d0cb989..47e26e7 100644
--- a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211_sr.c
+++ b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211_sr.c
@@ -343,11 +343,7 @@
cmd += 21;
cmd = skip_white_space(cmd);
pd_thres = get_s32_from_string(cmd, &ret);
- /**
- * For non-SRG OBSS, allowed range for PD threshold
- * is -62 to -81 as -82 is fixed as min offset.
- **/
- if (ret < 0 || pd_thres <= OBSS_PD_THRESHOLD_MIN ||
+ if (ret < 0 || pd_thres < OBSS_PD_THRESHOLD_MIN ||
pd_thres > OBSS_PD_THRESHOLD_MAX) {
wpa_printf(MSG_ERROR, "Invalid Non-SRG PD threshold: %d", pd_thres);
return -EINVAL;