|
@@ -528,7 +528,7 @@ int hdd_set_p2p_noa(struct net_device *dev, uint8_t *command)
|
|
noa.single_noa_duration = duration;
|
|
noa.single_noa_duration = duration;
|
|
noa.ps_selection = P2P_POWER_SAVE_TYPE_SINGLE_NOA;
|
|
noa.ps_selection = P2P_POWER_SAVE_TYPE_SINGLE_NOA;
|
|
} else {
|
|
} else {
|
|
- if (duration >= interval) {
|
|
|
|
|
|
+ if (count && (duration >= interval)) {
|
|
hdd_err("Duration should be less than interval");
|
|
hdd_err("Duration should be less than interval");
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|