|
@@ -1,5 +1,6 @@
|
|
/*
|
|
/*
|
|
* Copyright (c) 2019-2021 The Linux Foundation. All rights reserved.
|
|
* Copyright (c) 2019-2021 The Linux Foundation. All rights reserved.
|
|
|
|
+ * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -511,13 +512,11 @@ QDF_STATUS cfr_stop_indication(struct wlan_objmgr_vdev *vdev)
|
|
return QDF_STATUS_E_INVAL;
|
|
return QDF_STATUS_E_INVAL;
|
|
}
|
|
}
|
|
|
|
|
|
- if (pa->nl_cb.cfr_nl_cb) {
|
|
|
|
- pa->nl_cb.cfr_nl_cb(pa->nl_cb.vdev_id, pa->nl_cb.pid,
|
|
|
|
- (const void *)CFR_STOP_STR,
|
|
|
|
- sizeof(CFR_STOP_STR));
|
|
|
|
-
|
|
|
|
|
|
+ /* Don't write stop sting if there is valid cfr_nl_cb. Since
|
|
|
|
+ * userspace needn't stop event string
|
|
|
|
+ */
|
|
|
|
+ if (pa->nl_cb.cfr_nl_cb)
|
|
return QDF_STATUS_SUCCESS;
|
|
return QDF_STATUS_SUCCESS;
|
|
- }
|
|
|
|
|
|
|
|
status = cfr_streamfs_write(pa, (const void *)CFR_STOP_STR,
|
|
status = cfr_streamfs_write(pa, (const void *)CFR_STOP_STR,
|
|
sizeof(CFR_STOP_STR));
|
|
sizeof(CFR_STOP_STR));
|