|
@@ -325,7 +325,7 @@ static void
|
|
wlan_hdd_cfg80211_extscan_cached_results_ind(void *ctx,
|
|
wlan_hdd_cfg80211_extscan_cached_results_ind(void *ctx,
|
|
struct extscan_cached_scan_results *data)
|
|
struct extscan_cached_scan_results *data)
|
|
{
|
|
{
|
|
- struct hdd_context *pHddCtx = ctx;
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = ctx;
|
|
struct sk_buff *skb = NULL;
|
|
struct sk_buff *skb = NULL;
|
|
struct hdd_ext_scan_context *context;
|
|
struct hdd_ext_scan_context *context;
|
|
struct extscan_cached_scan_result *result;
|
|
struct extscan_cached_scan_result *result;
|
|
@@ -335,7 +335,7 @@ wlan_hdd_cfg80211_extscan_cached_results_ind(void *ctx,
|
|
|
|
|
|
/* ENTER() intentionally not used in a frequently invoked API */
|
|
/* ENTER() intentionally not used in a frequently invoked API */
|
|
|
|
|
|
- if (wlan_hdd_validate_context(pHddCtx))
|
|
|
|
|
|
+ if (wlan_hdd_validate_context(hdd_ctx))
|
|
return;
|
|
return;
|
|
if (!data) {
|
|
if (!data) {
|
|
hdd_err("data is null");
|
|
hdd_err("data is null");
|
|
@@ -401,7 +401,7 @@ wlan_hdd_cfg80211_extscan_cached_results_ind(void *ctx,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- skb = cfg80211_vendor_cmd_alloc_reply_skb(pHddCtx->wiphy, nl_buf_len);
|
|
|
|
|
|
+ skb = cfg80211_vendor_cmd_alloc_reply_skb(hdd_ctx->wiphy, nl_buf_len);
|
|
|
|
|
|
if (!skb) {
|
|
if (!skb) {
|
|
hdd_err("cfg80211_vendor_cmd_alloc_reply_skb failed");
|
|
hdd_err("cfg80211_vendor_cmd_alloc_reply_skb failed");
|
|
@@ -425,7 +425,7 @@ wlan_hdd_cfg80211_extscan_cached_results_ind(void *ctx,
|
|
* to derive the time since boot when the
|
|
* to derive the time since boot when the
|
|
* BSSID was cached.
|
|
* BSSID was cached.
|
|
*/
|
|
*/
|
|
- ap->ts += pHddCtx->ext_scan_start_since_boot;
|
|
|
|
|
|
+ ap->ts += hdd_ctx->ext_scan_start_since_boot;
|
|
hdd_debug("Timestamp %llu "
|
|
hdd_debug("Timestamp %llu "
|
|
"Ssid: %s "
|
|
"Ssid: %s "
|
|
"Bssid (" MAC_ADDRESS_STR ") "
|
|
"Bssid (" MAC_ADDRESS_STR ") "
|
|
@@ -555,14 +555,14 @@ static void
|
|
wlan_hdd_cfg80211_extscan_hotlist_match_ind(void *ctx,
|
|
wlan_hdd_cfg80211_extscan_hotlist_match_ind(void *ctx,
|
|
struct extscan_hotlist_match *data)
|
|
struct extscan_hotlist_match *data)
|
|
{
|
|
{
|
|
- struct hdd_context *pHddCtx = ctx;
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = ctx;
|
|
struct sk_buff *skb = NULL;
|
|
struct sk_buff *skb = NULL;
|
|
uint32_t i, index;
|
|
uint32_t i, index;
|
|
int flags = cds_get_gfp_flags();
|
|
int flags = cds_get_gfp_flags();
|
|
|
|
|
|
ENTER();
|
|
ENTER();
|
|
|
|
|
|
- if (wlan_hdd_validate_context(pHddCtx))
|
|
|
|
|
|
+ if (wlan_hdd_validate_context(hdd_ctx))
|
|
return;
|
|
return;
|
|
if (!data) {
|
|
if (!data) {
|
|
hdd_err("data is null");
|
|
hdd_err("data is null");
|
|
@@ -575,7 +575,7 @@ wlan_hdd_cfg80211_extscan_hotlist_match_ind(void *ctx,
|
|
index = QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST_INDEX;
|
|
index = QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST_INDEX;
|
|
|
|
|
|
skb = cfg80211_vendor_event_alloc(
|
|
skb = cfg80211_vendor_event_alloc(
|
|
- pHddCtx->wiphy,
|
|
|
|
|
|
+ hdd_ctx->wiphy,
|
|
NULL,
|
|
NULL,
|
|
EXTSCAN_EVENT_BUF_SIZE + NLMSG_HDRLEN,
|
|
EXTSCAN_EVENT_BUF_SIZE + NLMSG_HDRLEN,
|
|
index, flags);
|
|
index, flags);
|
|
@@ -691,7 +691,7 @@ wlan_hdd_cfg80211_extscan_signif_wifi_change_results_ind(
|
|
void *ctx,
|
|
void *ctx,
|
|
tpSirWifiSignificantChangeEvent pData)
|
|
tpSirWifiSignificantChangeEvent pData)
|
|
{
|
|
{
|
|
- struct hdd_context *pHddCtx = (struct hdd_context *) ctx;
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = (struct hdd_context *) ctx;
|
|
struct sk_buff *skb = NULL;
|
|
struct sk_buff *skb = NULL;
|
|
tSirWifiSignificantChange *ap_info;
|
|
tSirWifiSignificantChange *ap_info;
|
|
int32_t *rssi;
|
|
int32_t *rssi;
|
|
@@ -700,7 +700,7 @@ wlan_hdd_cfg80211_extscan_signif_wifi_change_results_ind(
|
|
|
|
|
|
ENTER();
|
|
ENTER();
|
|
|
|
|
|
- if (wlan_hdd_validate_context(pHddCtx))
|
|
|
|
|
|
+ if (wlan_hdd_validate_context(hdd_ctx))
|
|
return;
|
|
return;
|
|
if (!pData) {
|
|
if (!pData) {
|
|
hdd_err("pData is null");
|
|
hdd_err("pData is null");
|
|
@@ -708,7 +708,7 @@ wlan_hdd_cfg80211_extscan_signif_wifi_change_results_ind(
|
|
}
|
|
}
|
|
|
|
|
|
skb = cfg80211_vendor_event_alloc(
|
|
skb = cfg80211_vendor_event_alloc(
|
|
- pHddCtx->wiphy,
|
|
|
|
|
|
+ hdd_ctx->wiphy,
|
|
NULL,
|
|
NULL,
|
|
EXTSCAN_EVENT_BUF_SIZE + NLMSG_HDRLEN,
|
|
EXTSCAN_EVENT_BUF_SIZE + NLMSG_HDRLEN,
|
|
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE_INDEX,
|
|
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE_INDEX,
|
|
@@ -814,7 +814,7 @@ wlan_hdd_cfg80211_extscan_full_scan_result_event(void *ctx,
|
|
tpSirWifiFullScanResultEvent
|
|
tpSirWifiFullScanResultEvent
|
|
pData)
|
|
pData)
|
|
{
|
|
{
|
|
- struct hdd_context *pHddCtx = (struct hdd_context *) ctx;
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = (struct hdd_context *) ctx;
|
|
struct sk_buff *skb = NULL;
|
|
struct sk_buff *skb = NULL;
|
|
struct timespec ts;
|
|
struct timespec ts;
|
|
struct hdd_ext_scan_context *context;
|
|
struct hdd_ext_scan_context *context;
|
|
@@ -823,7 +823,7 @@ wlan_hdd_cfg80211_extscan_full_scan_result_event(void *ctx,
|
|
|
|
|
|
/* ENTER() intentionally not used in a frequently invoked API */
|
|
/* ENTER() intentionally not used in a frequently invoked API */
|
|
|
|
|
|
- if (wlan_hdd_validate_context(pHddCtx))
|
|
|
|
|
|
+ if (wlan_hdd_validate_context(hdd_ctx))
|
|
return;
|
|
return;
|
|
if (!pData) {
|
|
if (!pData) {
|
|
hdd_err("pData is null");
|
|
hdd_err("pData is null");
|
|
@@ -835,7 +835,7 @@ wlan_hdd_cfg80211_extscan_full_scan_result_event(void *ctx,
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
skb = cfg80211_vendor_event_alloc(
|
|
skb = cfg80211_vendor_event_alloc(
|
|
- pHddCtx->wiphy,
|
|
|
|
|
|
+ hdd_ctx->wiphy,
|
|
NULL,
|
|
NULL,
|
|
EXTSCAN_EVENT_BUF_SIZE + NLMSG_HDRLEN,
|
|
EXTSCAN_EVENT_BUF_SIZE + NLMSG_HDRLEN,
|
|
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT_INDEX,
|
|
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT_INDEX,
|
|
@@ -957,13 +957,13 @@ wlan_hdd_cfg80211_extscan_scan_res_available_event(
|
|
void *ctx,
|
|
void *ctx,
|
|
tpSirExtScanResultsAvailableIndParams pData)
|
|
tpSirExtScanResultsAvailableIndParams pData)
|
|
{
|
|
{
|
|
- struct hdd_context *pHddCtx = (struct hdd_context *) ctx;
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = (struct hdd_context *) ctx;
|
|
struct sk_buff *skb = NULL;
|
|
struct sk_buff *skb = NULL;
|
|
int flags = cds_get_gfp_flags();
|
|
int flags = cds_get_gfp_flags();
|
|
|
|
|
|
ENTER();
|
|
ENTER();
|
|
|
|
|
|
- if (wlan_hdd_validate_context(pHddCtx))
|
|
|
|
|
|
+ if (wlan_hdd_validate_context(hdd_ctx))
|
|
return;
|
|
return;
|
|
if (!pData) {
|
|
if (!pData) {
|
|
hdd_err("pData is null");
|
|
hdd_err("pData is null");
|
|
@@ -971,7 +971,7 @@ wlan_hdd_cfg80211_extscan_scan_res_available_event(
|
|
}
|
|
}
|
|
|
|
|
|
skb = cfg80211_vendor_event_alloc(
|
|
skb = cfg80211_vendor_event_alloc(
|
|
- pHddCtx->wiphy,
|
|
|
|
|
|
+ hdd_ctx->wiphy,
|
|
NULL,
|
|
NULL,
|
|
EXTSCAN_EVENT_BUF_SIZE + NLMSG_HDRLEN,
|
|
EXTSCAN_EVENT_BUF_SIZE + NLMSG_HDRLEN,
|
|
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE_INDEX,
|
|
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE_INDEX,
|
|
@@ -1017,14 +1017,14 @@ wlan_hdd_cfg80211_extscan_scan_progress_event(void *ctx,
|
|
tpSirExtScanOnScanEventIndParams
|
|
tpSirExtScanOnScanEventIndParams
|
|
pData)
|
|
pData)
|
|
{
|
|
{
|
|
- struct hdd_context *pHddCtx = (struct hdd_context *) ctx;
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = (struct hdd_context *) ctx;
|
|
struct sk_buff *skb = NULL;
|
|
struct sk_buff *skb = NULL;
|
|
int flags = cds_get_gfp_flags();
|
|
int flags = cds_get_gfp_flags();
|
|
struct hdd_ext_scan_context *context;
|
|
struct hdd_ext_scan_context *context;
|
|
|
|
|
|
/* ENTER() intentionally not used in a frequently invoked API */
|
|
/* ENTER() intentionally not used in a frequently invoked API */
|
|
|
|
|
|
- if (wlan_hdd_validate_context(pHddCtx))
|
|
|
|
|
|
+ if (wlan_hdd_validate_context(hdd_ctx))
|
|
return;
|
|
return;
|
|
if (!pData) {
|
|
if (!pData) {
|
|
hdd_err("pData is null");
|
|
hdd_err("pData is null");
|
|
@@ -1032,7 +1032,7 @@ wlan_hdd_cfg80211_extscan_scan_progress_event(void *ctx,
|
|
}
|
|
}
|
|
|
|
|
|
skb = cfg80211_vendor_event_alloc(
|
|
skb = cfg80211_vendor_event_alloc(
|
|
- pHddCtx->wiphy,
|
|
|
|
|
|
+ hdd_ctx->wiphy,
|
|
NULL,
|
|
NULL,
|
|
EXTSCAN_EVENT_BUF_SIZE + NLMSG_HDRLEN,
|
|
EXTSCAN_EVENT_BUF_SIZE + NLMSG_HDRLEN,
|
|
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT_INDEX,
|
|
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT_INDEX,
|
|
@@ -1094,14 +1094,14 @@ static void
|
|
wlan_hdd_cfg80211_extscan_epno_match_found(void *ctx,
|
|
wlan_hdd_cfg80211_extscan_epno_match_found(void *ctx,
|
|
struct pno_match_found *data)
|
|
struct pno_match_found *data)
|
|
{
|
|
{
|
|
- struct hdd_context *pHddCtx = (struct hdd_context *)ctx;
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = (struct hdd_context *)ctx;
|
|
struct sk_buff *skb = NULL;
|
|
struct sk_buff *skb = NULL;
|
|
uint32_t len, i;
|
|
uint32_t len, i;
|
|
int flags = cds_get_gfp_flags();
|
|
int flags = cds_get_gfp_flags();
|
|
|
|
|
|
ENTER();
|
|
ENTER();
|
|
|
|
|
|
- if (wlan_hdd_validate_context(pHddCtx))
|
|
|
|
|
|
+ if (wlan_hdd_validate_context(hdd_ctx))
|
|
return;
|
|
return;
|
|
if (!data) {
|
|
if (!data) {
|
|
hdd_err("data is null");
|
|
hdd_err("data is null");
|
|
@@ -1122,7 +1122,7 @@ wlan_hdd_cfg80211_extscan_epno_match_found(void *ctx,
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- skb = cfg80211_vendor_event_alloc(pHddCtx->wiphy,
|
|
|
|
|
|
+ skb = cfg80211_vendor_event_alloc(hdd_ctx->wiphy,
|
|
NULL,
|
|
NULL,
|
|
EXTSCAN_EVENT_BUF_SIZE + NLMSG_HDRLEN,
|
|
EXTSCAN_EVENT_BUF_SIZE + NLMSG_HDRLEN,
|
|
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND_INDEX,
|
|
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND_INDEX,
|
|
@@ -1208,7 +1208,7 @@ static void
|
|
wlan_hdd_cfg80211_passpoint_match_found(void *ctx,
|
|
wlan_hdd_cfg80211_passpoint_match_found(void *ctx,
|
|
struct wifi_passpoint_match *data)
|
|
struct wifi_passpoint_match *data)
|
|
{
|
|
{
|
|
- struct hdd_context *pHddCtx = ctx;
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = ctx;
|
|
struct sk_buff *skb = NULL;
|
|
struct sk_buff *skb = NULL;
|
|
uint32_t len, i, num_matches = 1, more_data = 0;
|
|
uint32_t len, i, num_matches = 1, more_data = 0;
|
|
struct nlattr *nla_aps, *nla_bss;
|
|
struct nlattr *nla_aps, *nla_bss;
|
|
@@ -1216,7 +1216,7 @@ wlan_hdd_cfg80211_passpoint_match_found(void *ctx,
|
|
|
|
|
|
ENTER();
|
|
ENTER();
|
|
|
|
|
|
- if (wlan_hdd_validate_context(pHddCtx))
|
|
|
|
|
|
+ if (wlan_hdd_validate_context(hdd_ctx))
|
|
return;
|
|
return;
|
|
if (!data) {
|
|
if (!data) {
|
|
hdd_err("data is null");
|
|
hdd_err("data is null");
|
|
@@ -1229,7 +1229,7 @@ wlan_hdd_cfg80211_passpoint_match_found(void *ctx,
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- skb = cfg80211_vendor_event_alloc(pHddCtx->wiphy,
|
|
|
|
|
|
+ skb = cfg80211_vendor_event_alloc(hdd_ctx->wiphy,
|
|
NULL,
|
|
NULL,
|
|
EXTSCAN_EVENT_BUF_SIZE + NLMSG_HDRLEN,
|
|
EXTSCAN_EVENT_BUF_SIZE + NLMSG_HDRLEN,
|
|
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND_INDEX,
|
|
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND_INDEX,
|
|
@@ -1374,11 +1374,11 @@ wlan_hdd_cfg80211_extscan_generic_rsp
|
|
void wlan_hdd_cfg80211_extscan_callback(void *ctx, const uint16_t evType,
|
|
void wlan_hdd_cfg80211_extscan_callback(void *ctx, const uint16_t evType,
|
|
void *pMsg)
|
|
void *pMsg)
|
|
{
|
|
{
|
|
- struct hdd_context *pHddCtx = (struct hdd_context *) ctx;
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = (struct hdd_context *) ctx;
|
|
|
|
|
|
/* ENTER() intentionally not used in a frequently invoked API */
|
|
/* ENTER() intentionally not used in a frequently invoked API */
|
|
|
|
|
|
- if (wlan_hdd_validate_context(pHddCtx))
|
|
|
|
|
|
+ if (wlan_hdd_validate_context(hdd_ctx))
|
|
return;
|
|
return;
|
|
|
|
|
|
hdd_debug("Rcvd Event %d", evType);
|
|
hdd_debug("Rcvd Event %d", evType);
|
|
@@ -1630,7 +1630,7 @@ static int __wlan_hdd_cfg80211_extscan_get_capabilities(struct wiphy *wiphy,
|
|
tpSirGetExtScanCapabilitiesReqParams pReqMsg = NULL;
|
|
tpSirGetExtScanCapabilitiesReqParams pReqMsg = NULL;
|
|
struct net_device *dev = wdev->netdev;
|
|
struct net_device *dev = wdev->netdev;
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
- struct hdd_context *pHddCtx = wiphy_priv(wiphy);
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = wiphy_priv(wiphy);
|
|
struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX +
|
|
struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX +
|
|
1];
|
|
1];
|
|
QDF_STATUS status;
|
|
QDF_STATUS status;
|
|
@@ -1642,16 +1642,16 @@ static int __wlan_hdd_cfg80211_extscan_get_capabilities(struct wiphy *wiphy,
|
|
return -EPERM;
|
|
return -EPERM;
|
|
}
|
|
}
|
|
|
|
|
|
- ret = wlan_hdd_validate_context(pHddCtx);
|
|
|
|
|
|
+ ret = wlan_hdd_validate_context(hdd_ctx);
|
|
if (0 != ret)
|
|
if (0 != ret)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- if (pHddCtx->driver_status == DRIVER_MODULES_CLOSED) {
|
|
|
|
|
|
+ if (hdd_ctx->driver_status == DRIVER_MODULES_CLOSED) {
|
|
hdd_err("Driver Modules are closed");
|
|
hdd_err("Driver Modules are closed");
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
- if (!pHddCtx->config->extscan_enabled) {
|
|
|
|
|
|
+ if (!hdd_ctx->config->extscan_enabled) {
|
|
hdd_err("extscan not supported");
|
|
hdd_err("extscan not supported");
|
|
return -ENOTSUPP;
|
|
return -ENOTSUPP;
|
|
}
|
|
}
|
|
@@ -1687,7 +1687,7 @@ static int __wlan_hdd_cfg80211_extscan_get_capabilities(struct wiphy *wiphy,
|
|
INIT_COMPLETION(context->response_event);
|
|
INIT_COMPLETION(context->response_event);
|
|
spin_unlock(&context->context_lock);
|
|
spin_unlock(&context->context_lock);
|
|
|
|
|
|
- status = sme_ext_scan_get_capabilities(pHddCtx->hHal, pReqMsg);
|
|
|
|
|
|
+ status = sme_ext_scan_get_capabilities(hdd_ctx->hHal, pReqMsg);
|
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
|
hdd_err("sme_ext_scan_get_capabilities failed(err=%d)",
|
|
hdd_err("sme_ext_scan_get_capabilities failed(err=%d)",
|
|
status);
|
|
status);
|
|
@@ -1701,7 +1701,7 @@ static int __wlan_hdd_cfg80211_extscan_get_capabilities(struct wiphy *wiphy,
|
|
return -ETIMEDOUT;
|
|
return -ETIMEDOUT;
|
|
}
|
|
}
|
|
|
|
|
|
- ret = wlan_hdd_send_ext_scan_capability(pHddCtx);
|
|
|
|
|
|
+ ret = wlan_hdd_send_ext_scan_capability(hdd_ctx);
|
|
if (ret)
|
|
if (ret)
|
|
hdd_err("Failed to send ext scan capability to user space");
|
|
hdd_err("Failed to send ext scan capability to user space");
|
|
EXIT();
|
|
EXIT();
|
|
@@ -1771,7 +1771,7 @@ static int __wlan_hdd_cfg80211_extscan_get_cached_results(struct wiphy *wiphy,
|
|
tpSirExtScanGetCachedResultsReqParams pReqMsg = NULL;
|
|
tpSirExtScanGetCachedResultsReqParams pReqMsg = NULL;
|
|
struct net_device *dev = wdev->netdev;
|
|
struct net_device *dev = wdev->netdev;
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
- struct hdd_context *pHddCtx = wiphy_priv(wiphy);
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = wiphy_priv(wiphy);
|
|
struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX +
|
|
struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX +
|
|
1];
|
|
1];
|
|
struct hdd_ext_scan_context *context;
|
|
struct hdd_ext_scan_context *context;
|
|
@@ -1786,11 +1786,11 @@ static int __wlan_hdd_cfg80211_extscan_get_cached_results(struct wiphy *wiphy,
|
|
return -EPERM;
|
|
return -EPERM;
|
|
}
|
|
}
|
|
|
|
|
|
- retval = wlan_hdd_validate_context(pHddCtx);
|
|
|
|
|
|
+ retval = wlan_hdd_validate_context(hdd_ctx);
|
|
if (0 != retval)
|
|
if (0 != retval)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- if (!pHddCtx->config->extscan_enabled) {
|
|
|
|
|
|
+ if (!hdd_ctx->config->extscan_enabled) {
|
|
hdd_err("extscan not supported");
|
|
hdd_err("extscan not supported");
|
|
return -ENOTSUPP;
|
|
return -ENOTSUPP;
|
|
}
|
|
}
|
|
@@ -1831,7 +1831,7 @@ static int __wlan_hdd_cfg80211_extscan_get_cached_results(struct wiphy *wiphy,
|
|
INIT_COMPLETION(context->response_event);
|
|
INIT_COMPLETION(context->response_event);
|
|
spin_unlock(&context->context_lock);
|
|
spin_unlock(&context->context_lock);
|
|
|
|
|
|
- status = sme_get_cached_results(pHddCtx->hHal, pReqMsg);
|
|
|
|
|
|
+ status = sme_get_cached_results(hdd_ctx->hHal, pReqMsg);
|
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
|
hdd_err("sme_get_cached_results failed(err=%d)", status);
|
|
hdd_err("sme_get_cached_results failed(err=%d)", status);
|
|
goto fail;
|
|
goto fail;
|
|
@@ -1915,7 +1915,7 @@ __wlan_hdd_cfg80211_extscan_set_bssid_hotlist(struct wiphy *wiphy,
|
|
tpSirExtScanSetBssidHotListReqParams pReqMsg = NULL;
|
|
tpSirExtScanSetBssidHotListReqParams pReqMsg = NULL;
|
|
struct net_device *dev = wdev->netdev;
|
|
struct net_device *dev = wdev->netdev;
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
- struct hdd_context *pHddCtx = wiphy_priv(wiphy);
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = wiphy_priv(wiphy);
|
|
struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX +
|
|
struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX +
|
|
1];
|
|
1];
|
|
struct nlattr *tb2[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX
|
|
struct nlattr *tb2[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX
|
|
@@ -1935,11 +1935,11 @@ __wlan_hdd_cfg80211_extscan_set_bssid_hotlist(struct wiphy *wiphy,
|
|
return -EPERM;
|
|
return -EPERM;
|
|
}
|
|
}
|
|
|
|
|
|
- retval = wlan_hdd_validate_context(pHddCtx);
|
|
|
|
|
|
+ retval = wlan_hdd_validate_context(hdd_ctx);
|
|
if (0 != retval)
|
|
if (0 != retval)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- if (!pHddCtx->config->extscan_enabled) {
|
|
|
|
|
|
+ if (!hdd_ctx->config->extscan_enabled) {
|
|
hdd_err("extscan not supported");
|
|
hdd_err("extscan not supported");
|
|
return -ENOTSUPP;
|
|
return -ENOTSUPP;
|
|
}
|
|
}
|
|
@@ -2065,7 +2065,7 @@ __wlan_hdd_cfg80211_extscan_set_bssid_hotlist(struct wiphy *wiphy,
|
|
context->request_id = request_id = pReqMsg->requestId;
|
|
context->request_id = request_id = pReqMsg->requestId;
|
|
spin_unlock(&context->context_lock);
|
|
spin_unlock(&context->context_lock);
|
|
|
|
|
|
- status = sme_set_bss_hotlist(pHddCtx->hHal, pReqMsg);
|
|
|
|
|
|
+ status = sme_set_bss_hotlist(hdd_ctx->hHal, pReqMsg);
|
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
|
hdd_err("sme_set_bss_hotlist failed(err=%d)", status);
|
|
hdd_err("sme_set_bss_hotlist failed(err=%d)", status);
|
|
goto fail;
|
|
goto fail;
|
|
@@ -2137,7 +2137,7 @@ __wlan_hdd_cfg80211_extscan_set_significant_change(struct wiphy *wiphy,
|
|
tpSirExtScanSetSigChangeReqParams pReqMsg = NULL;
|
|
tpSirExtScanSetSigChangeReqParams pReqMsg = NULL;
|
|
struct net_device *dev = wdev->netdev;
|
|
struct net_device *dev = wdev->netdev;
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
- struct hdd_context *pHddCtx = wiphy_priv(wiphy);
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = wiphy_priv(wiphy);
|
|
struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX +
|
|
struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX +
|
|
1];
|
|
1];
|
|
struct nlattr *tb2[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX
|
|
struct nlattr *tb2[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX
|
|
@@ -2157,7 +2157,7 @@ __wlan_hdd_cfg80211_extscan_set_significant_change(struct wiphy *wiphy,
|
|
return -EPERM;
|
|
return -EPERM;
|
|
}
|
|
}
|
|
|
|
|
|
- retval = wlan_hdd_validate_context(pHddCtx);
|
|
|
|
|
|
+ retval = wlan_hdd_validate_context(hdd_ctx);
|
|
if (0 != retval)
|
|
if (0 != retval)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
@@ -2307,7 +2307,7 @@ __wlan_hdd_cfg80211_extscan_set_significant_change(struct wiphy *wiphy,
|
|
context->request_id = request_id = pReqMsg->requestId;
|
|
context->request_id = request_id = pReqMsg->requestId;
|
|
spin_unlock(&context->context_lock);
|
|
spin_unlock(&context->context_lock);
|
|
|
|
|
|
- status = sme_set_significant_change(pHddCtx->hHal, pReqMsg);
|
|
|
|
|
|
+ status = sme_set_significant_change(hdd_ctx->hHal, pReqMsg);
|
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
|
hdd_err("sme_set_significant_change failed(err=%d)", status);
|
|
hdd_err("sme_set_significant_change failed(err=%d)", status);
|
|
qdf_mem_free(pReqMsg);
|
|
qdf_mem_free(pReqMsg);
|
|
@@ -2435,7 +2435,7 @@ __wlan_hdd_cfg80211_extscan_get_valid_channels(struct wiphy *wiphy,
|
|
*wdev, const void *data,
|
|
*wdev, const void *data,
|
|
int data_len)
|
|
int data_len)
|
|
{
|
|
{
|
|
- struct hdd_context *pHddCtx = wiphy_priv(wiphy);
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = wiphy_priv(wiphy);
|
|
struct net_device *dev = wdev->netdev;
|
|
struct net_device *dev = wdev->netdev;
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
uint32_t chan_list[WNI_CFG_VALID_CHANNEL_LIST_LEN] = {0};
|
|
uint32_t chan_list[WNI_CFG_VALID_CHANNEL_LIST_LEN] = {0};
|
|
@@ -2455,11 +2455,11 @@ __wlan_hdd_cfg80211_extscan_get_valid_channels(struct wiphy *wiphy,
|
|
return -EPERM;
|
|
return -EPERM;
|
|
}
|
|
}
|
|
|
|
|
|
- ret = wlan_hdd_validate_context(pHddCtx);
|
|
|
|
|
|
+ ret = wlan_hdd_validate_context(hdd_ctx);
|
|
if (0 != ret)
|
|
if (0 != ret)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- if (!pHddCtx->config->extscan_enabled) {
|
|
|
|
|
|
+ if (!hdd_ctx->config->extscan_enabled) {
|
|
hdd_err("extscan not supported");
|
|
hdd_err("extscan not supported");
|
|
return -ENOTSUPP;
|
|
return -ENOTSUPP;
|
|
}
|
|
}
|
|
@@ -2506,7 +2506,7 @@ __wlan_hdd_cfg80211_extscan_get_valid_channels(struct wiphy *wiphy,
|
|
|
|
|
|
hdd_debug("Req Id: %u Wifi band: %d Max channels: %d", requestId,
|
|
hdd_debug("Req Id: %u Wifi band: %d Max channels: %d", requestId,
|
|
wifiBand, maxChannels);
|
|
wifiBand, maxChannels);
|
|
- status = sme_get_valid_channels_by_band((tHalHandle) (pHddCtx->hHal),
|
|
|
|
|
|
+ status = sme_get_valid_channels_by_band((tHalHandle) (hdd_ctx->hHal),
|
|
wifiBand, chan_list,
|
|
wifiBand, chan_list,
|
|
&num_channels);
|
|
&num_channels);
|
|
if (QDF_STATUS_SUCCESS != status) {
|
|
if (QDF_STATUS_SUCCESS != status) {
|
|
@@ -2517,7 +2517,7 @@ __wlan_hdd_cfg80211_extscan_get_valid_channels(struct wiphy *wiphy,
|
|
|
|
|
|
num_channels = QDF_MIN(num_channels, maxChannels);
|
|
num_channels = QDF_MIN(num_channels, maxChannels);
|
|
|
|
|
|
- hdd_remove_dsrc_channels(pHddCtx, wiphy, chan_list, &num_channels);
|
|
|
|
|
|
+ hdd_remove_dsrc_channels(hdd_ctx, wiphy, chan_list, &num_channels);
|
|
if ((QDF_SAP_MODE == pAdapter->device_mode) ||
|
|
if ((QDF_SAP_MODE == pAdapter->device_mode) ||
|
|
!strncmp(hdd_get_fwpath(), "ap", 2))
|
|
!strncmp(hdd_get_fwpath(), "ap", 2))
|
|
hdd_remove_passive_channels(wiphy, chan_list,
|
|
hdd_remove_passive_channels(wiphy, chan_list,
|
|
@@ -3126,7 +3126,7 @@ __wlan_hdd_cfg80211_extscan_start(struct wiphy *wiphy,
|
|
tpSirWifiScanCmdReqParams pReqMsg = NULL;
|
|
tpSirWifiScanCmdReqParams pReqMsg = NULL;
|
|
struct net_device *dev = wdev->netdev;
|
|
struct net_device *dev = wdev->netdev;
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
- struct hdd_context *pHddCtx = wiphy_priv(wiphy);
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = wiphy_priv(wiphy);
|
|
struct nlattr *tb[PARAM_MAX + 1];
|
|
struct nlattr *tb[PARAM_MAX + 1];
|
|
struct hdd_ext_scan_context *context;
|
|
struct hdd_ext_scan_context *context;
|
|
uint32_t request_id, num_buckets;
|
|
uint32_t request_id, num_buckets;
|
|
@@ -3141,11 +3141,11 @@ __wlan_hdd_cfg80211_extscan_start(struct wiphy *wiphy,
|
|
return -EPERM;
|
|
return -EPERM;
|
|
}
|
|
}
|
|
|
|
|
|
- retval = wlan_hdd_validate_context(pHddCtx);
|
|
|
|
|
|
+ retval = wlan_hdd_validate_context(hdd_ctx);
|
|
if (0 != retval)
|
|
if (0 != retval)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- if (!pHddCtx->config->extscan_enabled) {
|
|
|
|
|
|
+ if (!hdd_ctx->config->extscan_enabled) {
|
|
hdd_err("extscan not supported");
|
|
hdd_err("extscan not supported");
|
|
return -ENOTSUPP;
|
|
return -ENOTSUPP;
|
|
}
|
|
}
|
|
@@ -3226,7 +3226,7 @@ __wlan_hdd_cfg80211_extscan_start(struct wiphy *wiphy,
|
|
nla_get_u32(tb[PARAM_CONFIG_FLAGS]));
|
|
nla_get_u32(tb[PARAM_CONFIG_FLAGS]));
|
|
|
|
|
|
pReqMsg->extscan_adaptive_dwell_mode =
|
|
pReqMsg->extscan_adaptive_dwell_mode =
|
|
- pHddCtx->config->extscan_adaptive_dwell_mode;
|
|
|
|
|
|
+ hdd_ctx->config->extscan_adaptive_dwell_mode;
|
|
|
|
|
|
hdd_debug("Configuration flags: %u",
|
|
hdd_debug("Configuration flags: %u",
|
|
pReqMsg->configuration_flags);
|
|
pReqMsg->configuration_flags);
|
|
@@ -3236,7 +3236,7 @@ __wlan_hdd_cfg80211_extscan_start(struct wiphy *wiphy,
|
|
goto fail;
|
|
goto fail;
|
|
}
|
|
}
|
|
|
|
|
|
- if (hdd_extscan_start_fill_bucket_channel_spec(pHddCtx, pReqMsg, tb))
|
|
|
|
|
|
+ if (hdd_extscan_start_fill_bucket_channel_spec(hdd_ctx, pReqMsg, tb))
|
|
goto fail;
|
|
goto fail;
|
|
|
|
|
|
context = &ext_scan_context;
|
|
context = &ext_scan_context;
|
|
@@ -3246,15 +3246,15 @@ __wlan_hdd_cfg80211_extscan_start(struct wiphy *wiphy,
|
|
context->buckets_scanned = 0;
|
|
context->buckets_scanned = 0;
|
|
spin_unlock(&context->context_lock);
|
|
spin_unlock(&context->context_lock);
|
|
|
|
|
|
- status = sme_ext_scan_start(pHddCtx->hHal, pReqMsg);
|
|
|
|
|
|
+ status = sme_ext_scan_start(hdd_ctx->hHal, pReqMsg);
|
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
|
hdd_err("sme_ext_scan_start failed(err=%d)", status);
|
|
hdd_err("sme_ext_scan_start failed(err=%d)", status);
|
|
goto fail;
|
|
goto fail;
|
|
}
|
|
}
|
|
|
|
|
|
- pHddCtx->ext_scan_start_since_boot = qdf_get_monotonic_boottime();
|
|
|
|
|
|
+ hdd_ctx->ext_scan_start_since_boot = qdf_get_monotonic_boottime();
|
|
hdd_debug("Timestamp since boot: %llu",
|
|
hdd_debug("Timestamp since boot: %llu",
|
|
- pHddCtx->ext_scan_start_since_boot);
|
|
|
|
|
|
+ hdd_ctx->ext_scan_start_since_boot);
|
|
|
|
|
|
/* request was sent -- wait for the response */
|
|
/* request was sent -- wait for the response */
|
|
rc = wait_for_completion_timeout(&context->response_event,
|
|
rc = wait_for_completion_timeout(&context->response_event,
|
|
@@ -3340,7 +3340,7 @@ __wlan_hdd_cfg80211_extscan_stop(struct wiphy *wiphy,
|
|
tpSirExtScanStopReqParams pReqMsg = NULL;
|
|
tpSirExtScanStopReqParams pReqMsg = NULL;
|
|
struct net_device *dev = wdev->netdev;
|
|
struct net_device *dev = wdev->netdev;
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
- struct hdd_context *pHddCtx = wiphy_priv(wiphy);
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = wiphy_priv(wiphy);
|
|
struct nlattr *tb[PARAM_MAX + 1];
|
|
struct nlattr *tb[PARAM_MAX + 1];
|
|
struct hdd_ext_scan_context *context;
|
|
struct hdd_ext_scan_context *context;
|
|
QDF_STATUS status;
|
|
QDF_STATUS status;
|
|
@@ -3355,11 +3355,11 @@ __wlan_hdd_cfg80211_extscan_stop(struct wiphy *wiphy,
|
|
return -EPERM;
|
|
return -EPERM;
|
|
}
|
|
}
|
|
|
|
|
|
- retval = wlan_hdd_validate_context(pHddCtx);
|
|
|
|
|
|
+ retval = wlan_hdd_validate_context(hdd_ctx);
|
|
if (0 != retval)
|
|
if (0 != retval)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- if (!pHddCtx->config->extscan_enabled) {
|
|
|
|
|
|
+ if (!hdd_ctx->config->extscan_enabled) {
|
|
hdd_err("extscan not supported");
|
|
hdd_err("extscan not supported");
|
|
return -ENOTSUPP;
|
|
return -ENOTSUPP;
|
|
}
|
|
}
|
|
@@ -3392,7 +3392,7 @@ __wlan_hdd_cfg80211_extscan_stop(struct wiphy *wiphy,
|
|
context->request_id = request_id = pReqMsg->requestId;
|
|
context->request_id = request_id = pReqMsg->requestId;
|
|
spin_unlock(&context->context_lock);
|
|
spin_unlock(&context->context_lock);
|
|
|
|
|
|
- status = sme_ext_scan_stop(pHddCtx->hHal, pReqMsg);
|
|
|
|
|
|
+ status = sme_ext_scan_stop(hdd_ctx->hHal, pReqMsg);
|
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
|
hdd_err("sme_ext_scan_stop failed(err=%d)", status);
|
|
hdd_err("sme_ext_scan_stop failed(err=%d)", status);
|
|
goto fail;
|
|
goto fail;
|
|
@@ -3469,7 +3469,7 @@ __wlan_hdd_cfg80211_extscan_reset_bssid_hotlist(struct wiphy *wiphy,
|
|
tpSirExtScanResetBssidHotlistReqParams pReqMsg = NULL;
|
|
tpSirExtScanResetBssidHotlistReqParams pReqMsg = NULL;
|
|
struct net_device *dev = wdev->netdev;
|
|
struct net_device *dev = wdev->netdev;
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
- struct hdd_context *pHddCtx = wiphy_priv(wiphy);
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = wiphy_priv(wiphy);
|
|
struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX +
|
|
struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX +
|
|
1];
|
|
1];
|
|
struct hdd_ext_scan_context *context;
|
|
struct hdd_ext_scan_context *context;
|
|
@@ -3485,11 +3485,11 @@ __wlan_hdd_cfg80211_extscan_reset_bssid_hotlist(struct wiphy *wiphy,
|
|
return -EPERM;
|
|
return -EPERM;
|
|
}
|
|
}
|
|
|
|
|
|
- retval = wlan_hdd_validate_context(pHddCtx);
|
|
|
|
|
|
+ retval = wlan_hdd_validate_context(hdd_ctx);
|
|
if (0 != retval)
|
|
if (0 != retval)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- if (!pHddCtx->config->extscan_enabled) {
|
|
|
|
|
|
+ if (!hdd_ctx->config->extscan_enabled) {
|
|
hdd_err("extscan not supported");
|
|
hdd_err("extscan not supported");
|
|
return -ENOTSUPP;
|
|
return -ENOTSUPP;
|
|
}
|
|
}
|
|
@@ -3525,7 +3525,7 @@ __wlan_hdd_cfg80211_extscan_reset_bssid_hotlist(struct wiphy *wiphy,
|
|
context->request_id = request_id = pReqMsg->requestId;
|
|
context->request_id = request_id = pReqMsg->requestId;
|
|
spin_unlock(&context->context_lock);
|
|
spin_unlock(&context->context_lock);
|
|
|
|
|
|
- status = sme_reset_bss_hotlist(pHddCtx->hHal, pReqMsg);
|
|
|
|
|
|
+ status = sme_reset_bss_hotlist(hdd_ctx->hHal, pReqMsg);
|
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
|
hdd_err("sme_reset_bss_hotlist failed(err=%d)", status);
|
|
hdd_err("sme_reset_bss_hotlist failed(err=%d)", status);
|
|
goto fail;
|
|
goto fail;
|
|
@@ -3598,7 +3598,7 @@ __wlan_hdd_cfg80211_extscan_reset_significant_change(struct wiphy
|
|
tpSirExtScanResetSignificantChangeReqParams pReqMsg = NULL;
|
|
tpSirExtScanResetSignificantChangeReqParams pReqMsg = NULL;
|
|
struct net_device *dev = wdev->netdev;
|
|
struct net_device *dev = wdev->netdev;
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
struct hdd_adapter *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
- struct hdd_context *pHddCtx = wiphy_priv(wiphy);
|
|
|
|
|
|
+ struct hdd_context *hdd_ctx = wiphy_priv(wiphy);
|
|
struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX +
|
|
struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX +
|
|
1];
|
|
1];
|
|
struct hdd_ext_scan_context *context;
|
|
struct hdd_ext_scan_context *context;
|
|
@@ -3614,11 +3614,11 @@ __wlan_hdd_cfg80211_extscan_reset_significant_change(struct wiphy
|
|
return -EPERM;
|
|
return -EPERM;
|
|
}
|
|
}
|
|
|
|
|
|
- retval = wlan_hdd_validate_context(pHddCtx);
|
|
|
|
|
|
+ retval = wlan_hdd_validate_context(hdd_ctx);
|
|
if (0 != retval)
|
|
if (0 != retval)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- if (!pHddCtx->config->extscan_enabled) {
|
|
|
|
|
|
+ if (!hdd_ctx->config->extscan_enabled) {
|
|
hdd_err("extscan not supported");
|
|
hdd_err("extscan not supported");
|
|
return -ENOTSUPP;
|
|
return -ENOTSUPP;
|
|
}
|
|
}
|
|
@@ -3655,7 +3655,7 @@ __wlan_hdd_cfg80211_extscan_reset_significant_change(struct wiphy
|
|
context->request_id = request_id = pReqMsg->requestId;
|
|
context->request_id = request_id = pReqMsg->requestId;
|
|
spin_unlock(&context->context_lock);
|
|
spin_unlock(&context->context_lock);
|
|
|
|
|
|
- status = sme_reset_significant_change(pHddCtx->hHal, pReqMsg);
|
|
|
|
|
|
+ status = sme_reset_significant_change(hdd_ctx->hHal, pReqMsg);
|
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
|
hdd_err("sme_reset_significant_change failed(err=%d)",
|
|
hdd_err("sme_reset_significant_change failed(err=%d)",
|
|
status);
|
|
status);
|
|
@@ -4345,12 +4345,12 @@ int wlan_hdd_cfg80211_reset_passpoint_list(struct wiphy *wiphy,
|
|
* Return: none
|
|
* Return: none
|
|
*/
|
|
*/
|
|
#ifdef WLAN_FEATURE_EXTWOW_SUPPORT
|
|
#ifdef WLAN_FEATURE_EXTWOW_SUPPORT
|
|
-static inline void wlan_hdd_init_completion_extwow(struct hdd_context *pHddCtx)
|
|
|
|
|
|
+static inline void wlan_hdd_init_completion_extwow(struct hdd_context *hdd_ctx)
|
|
{
|
|
{
|
|
- init_completion(&pHddCtx->ready_to_extwow);
|
|
|
|
|
|
+ init_completion(&hdd_ctx->ready_to_extwow);
|
|
}
|
|
}
|
|
#else
|
|
#else
|
|
-static inline void wlan_hdd_init_completion_extwow(struct hdd_context *pHddCtx)
|
|
|
|
|
|
+static inline void wlan_hdd_init_completion_extwow(struct hdd_context *hdd_ctx)
|
|
{
|
|
{
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|