|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
|
|
|
*
|
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -350,6 +350,32 @@ QDF_STATUS wifi_pos_register_get_phy_mode_cb(
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
+QDF_STATUS wifi_pos_register_get_fw_phy_mode_for_freq_cb(
|
|
|
+ struct wlan_objmgr_psoc *psoc,
|
|
|
+ void (*handler)(uint32_t, uint32_t, uint32_t *))
|
|
|
+{
|
|
|
+ struct wifi_pos_psoc_priv_obj *wifi_pos_psoc;
|
|
|
+
|
|
|
+ if (!psoc) {
|
|
|
+ wifi_pos_err("psoc is null");
|
|
|
+ return QDF_STATUS_E_NULL_VALUE;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (!handler) {
|
|
|
+ wifi_pos_err("Null callback");
|
|
|
+ return QDF_STATUS_E_NULL_VALUE;
|
|
|
+ }
|
|
|
+ wifi_pos_psoc = wifi_pos_get_psoc_priv_obj(psoc);
|
|
|
+ if (!wifi_pos_psoc) {
|
|
|
+ wifi_pos_err("wifi_pos priv obj is null");
|
|
|
+ return QDF_STATUS_E_NULL_VALUE;
|
|
|
+ }
|
|
|
+
|
|
|
+ wifi_pos_psoc->wifi_pos_get_fw_phy_mode_for_freq = handler;
|
|
|
+
|
|
|
+ return QDF_STATUS_SUCCESS;
|
|
|
+}
|
|
|
+
|
|
|
QDF_STATUS wifi_pos_register_send_action(
|
|
|
struct wlan_objmgr_psoc *psoc,
|
|
|
void (*handler)(struct wlan_objmgr_psoc *psoc,
|