if (!slsi_dev_nan_supported(sdev)) {
SLSI_ERR(sdev, "NAN not allowed(mib:%d)\n", sdev->nan_enabled);
- ret = WIFI_ERROR_NOT_SUPPORTED;
+ ret = WIFI_HAL_ERROR_NOT_SUPPORTED;
reply_status = NAN_STATUS_NAN_NOT_ALLOWED;
goto exit;
}
if (!ndev_vif->activated) {
SLSI_WARN(sdev, "NAN vif not activated\n");
reply_status = NAN_STATUS_NAN_NOT_ALLOWED;
- ret = WIFI_ERROR_NOT_AVAILABLE;
+ ret = WIFI_HAL_ERROR_NOT_AVAILABLE;
goto exit_with_lock;
}
SLSI_MUTEX_LOCK(ndev_vif->vif_mutex);
if (!ndev_vif->activated) {
reply_status = NAN_STATUS_NAN_NOT_ALLOWED;
- ret = WIFI_ERROR_NOT_AVAILABLE;
+ ret = WIFI_HAL_ERROR_NOT_AVAILABLE;
goto exit_with_lock;
}
if (!publish_id || !slsi_nan_is_publish_id_active(ndev_vif, publish_id)) {
if (!ndev_vif->activated) {
SLSI_WARN(sdev, "NAN vif not activated\n");
reply_status = NAN_STATUS_NAN_NOT_ALLOWED;
- ret = WIFI_ERROR_NOT_AVAILABLE;
+ ret = WIFI_HAL_ERROR_NOT_AVAILABLE;
goto exit_with_lock;
}
struct slsi_dev *sdev = SDEV_FROM_WIPHY(wiphy);
struct net_device *dev = slsi_nan_get_netdev(sdev);
struct netdev_vif *ndev_vif;
- int type, tmp, ret = WIFI_ERROR_UNKNOWN;
+ int type, tmp, ret = WIFI_HAL_ERROR_UNKNOWN;
u16 subscribe_id = 0;
const struct nlattr *iter;
u32 reply_status = NAN_STATUS_SUCCESS;
if (!dev) {
SLSI_ERR(sdev, "NAN netif not active!!");
reply_status = NAN_STATUS_NAN_NOT_ALLOWED;
- ret = WIFI_ERROR_NOT_AVAILABLE;
+ ret = WIFI_HAL_ERROR_NOT_AVAILABLE;
goto exit;
}
} else {
SLSI_ERR(sdev, "vif not activated\n");
reply_status = NAN_STATUS_NAN_NOT_ALLOWED;
- ret = WIFI_ERROR_NOT_AVAILABLE;
+ ret = WIFI_HAL_ERROR_NOT_AVAILABLE;
}
SLSI_MUTEX_UNLOCK(ndev_vif->vif_mutex);
exit:
if (!ndev_vif->activated) {
SLSI_WARN(sdev, "NAN vif not activated\n");
reply_status = NAN_STATUS_NAN_NOT_ALLOWED;
- ret = WIFI_ERROR_NOT_AVAILABLE;
+ ret = WIFI_HAL_ERROR_NOT_AVAILABLE;
goto exit_with_lock;
}
if (!ndev_vif->activated) {
SLSI_WARN(sdev, "NAN vif not activated\n");
reply_status = NAN_STATUS_NAN_NOT_ALLOWED;
- ret = WIFI_ERROR_NOT_AVAILABLE;
+ ret = WIFI_HAL_ERROR_NOT_AVAILABLE;
} else {
ret = slsi_mlme_nan_set_config(sdev, dev, &hal_req);
if (ret)
#define SLSI_HAL_NAN_MAX_SUBSCRIBE_MAX_ADDRESS 42
#define SLSI_HAL_NAN_MAX_POSTDISCOVERY_LEN 5
-/* WiFi-HAL return codes are defined in scsc_wifilogger_types.h */
-#ifdef CONFIG_SCSC_WLAN_ENHANCED_LOGGING
-#include "scsc_wifilogger_types.h"
-#else
-enum slsi_nan_api_return_types {
- WIFI_SUCCESS = 0,
- WIFI_ERROR_NONE = 0,
- WIFI_ERROR_UNKNOWN = -1,
- WIFI_ERROR_UNINITIALIZED = -2,
- WIFI_ERROR_NOT_SUPPORTED = -3,
- WIFI_ERROR_NOT_AVAILABLE = -4,
- WIFI_ERROR_INVALID_ARGS = -5,
- WIFI_ERROR_INVALID_REQUEST_ID = -6,
- WIFI_ERROR_TIMED_OUT = -7,
- WIFI_ERROR_TOO_MANY_REQUESTS = -8,
- WIFI_ERROR_OUT_OF_MEMORY = -9
+enum slsi_wifi_hal_api_return_types {
+ WIFI_HAL_SUCCESS = 0,
+ WIFI_HAL_ERROR_NONE = 0,
+ WIFI_HAL_ERROR_UNKNOWN = -1,
+ WIFI_HAL_ERROR_UNINITIALIZED = -2,
+ WIFI_HAL_ERROR_NOT_SUPPORTED = -3,
+ WIFI_HAL_ERROR_NOT_AVAILABLE = -4,
+ WIFI_HAL_ERROR_INVALID_ARGS = -5,
+ WIFI_HAL_ERROR_INVALID_REQUEST_ID = -6,
+ WIFI_HAL_ERROR_TIMED_OUT = -7,
+ WIFI_HAL_ERROR_TOO_MANY_REQUESTS = -8,
+ WIFI_HAL_ERROR_OUT_OF_MEMORY = -9
};
-#endif
enum slsi_nan_status_type {
/* NAN Protocol Response Codes */