mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
qcacld-3.0: Check for NAN state only if NAN SM is in host
A check is added recently to avoid creating NDI if NAN is not in enabled state. This is to avoid wastage of resources(vdev, peers,..) in firmware.But this check is valid only for the platforms where NAN statemachine is in host driver. This check is not valid for legacy platforms where NAN state machine is in firmware. Bypass the same for legacy targets. CRs-Fixed: 3178939 Change-Id: I1475b4313d1e7ac2c05d5edd215e929f3eb6335e
This commit is contained in:
parent
922ce620ae
commit
29f0d9734d
1 changed files with 2 additions and 1 deletions
|
|
@ -1064,7 +1064,8 @@ int os_if_nan_process_ndp_cmd(struct wlan_objmgr_psoc *psoc,
|
|||
* lead to issues if NDI has to be started in a
|
||||
* 2GHz channel and if the target is not operating in DBS mode.
|
||||
*/
|
||||
if (!ucfg_is_nan_disc_active(psoc)) {
|
||||
if ((ucfg_is_nan_conc_control_supported(psoc)) &&
|
||||
(!ucfg_is_nan_disc_active(psoc))) {
|
||||
osif_err("NDI creation is not allowed when NAN discovery is not running");
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue