|
@@ -85,8 +85,8 @@ static void wlan_fill_scan_rand_attrs(struct wlan_objmgr_vdev *vdev,
|
|
|
*randomize = true;
|
|
|
memcpy(addr, mac_addr, QDF_MAC_ADDR_SIZE);
|
|
|
memcpy(mask, mac_addr_mask, QDF_MAC_ADDR_SIZE);
|
|
|
- cfg80211_debug("Random mac addr: %pM and Random mac mask: %pM",
|
|
|
- addr, mask);
|
|
|
+ osif_debug("Random mac addr: %pM and Random mac mask: %pM",
|
|
|
+ addr, mask);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -176,8 +176,8 @@ wlan_config_sched_scan_plan(struct pno_scan_req_params *pno_req,
|
|
|
pno_req->slow_scan_period =
|
|
|
request->scan_plans[0].interval * MSEC_PER_SEC;
|
|
|
} else {
|
|
|
- cfg80211_err("Invalid number of scan plans %d !!",
|
|
|
- request->n_scan_plans);
|
|
|
+ osif_err("Invalid number of scan plans %d !!",
|
|
|
+ request->n_scan_plans);
|
|
|
}
|
|
|
}
|
|
|
#else
|
|
@@ -198,8 +198,8 @@ __wlan_config_sched_scan_plan(struct pno_scan_req_params *pno_req,
|
|
|
pno_req->fast_scan_max_cycles = scan_timer_repeat_value;
|
|
|
pno_req->slow_scan_period =
|
|
|
(slow_scan_multiplier * pno_req->fast_scan_period);
|
|
|
- cfg80211_debug("Base scan interval: %d sec PNO Scan Timer Repeat Value: %d",
|
|
|
- (request->interval / 1000), scan_timer_repeat_value);
|
|
|
+ osif_debug("Base scan interval: %d sec PNO Scan Timer Repeat Value: %d",
|
|
|
+ (request->interval / 1000), scan_timer_repeat_value);
|
|
|
}
|
|
|
#endif
|
|
|
|
|
@@ -236,17 +236,17 @@ static void wlan_cfg80211_pno_callback(struct wlan_objmgr_vdev *vdev,
|
|
|
if (event->type != SCAN_EVENT_TYPE_NLO_COMPLETE)
|
|
|
return;
|
|
|
|
|
|
- cfg80211_debug("vdev id = %d", event->vdev_id);
|
|
|
+ osif_debug("vdev id = %d", event->vdev_id);
|
|
|
|
|
|
pdev = wlan_vdev_get_pdev(vdev);
|
|
|
if (!pdev) {
|
|
|
- cfg80211_err("pdev is NULL");
|
|
|
+ osif_err("pdev is NULL");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
pdev_ospriv = wlan_pdev_get_ospriv(pdev);
|
|
|
if (!pdev_ospriv) {
|
|
|
- cfg80211_err("pdev_ospriv is NULL");
|
|
|
+ osif_err("pdev_ospriv is NULL");
|
|
|
return;
|
|
|
}
|
|
|
wlan_cfg80211_sched_scan_results(pdev_ospriv->wiphy, 0);
|
|
@@ -270,7 +270,7 @@ static QDF_STATUS wlan_cfg80211_is_chan_ok_for_dnbs(
|
|
|
QDF_STATUS status = policy_mgr_is_chan_ok_for_dnbs(psoc, channel, ok);
|
|
|
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
|
- cfg80211_err("DNBS check failed");
|
|
|
+ osif_err("DNBS check failed");
|
|
|
return status;
|
|
|
}
|
|
|
|
|
@@ -402,7 +402,7 @@ int wlan_cfg80211_sched_scan_start(struct wlan_objmgr_vdev *vdev,
|
|
|
bool enable_dfs_pno_chnl_scan;
|
|
|
|
|
|
if (ucfg_scan_get_pno_in_progress(vdev)) {
|
|
|
- cfg80211_debug("pno is already in progress");
|
|
|
+ osif_debug("pno is already in progress");
|
|
|
return -EBUSY;
|
|
|
}
|
|
|
|
|
@@ -412,7 +412,7 @@ int wlan_cfg80211_sched_scan_start(struct wlan_objmgr_vdev *vdev,
|
|
|
wlan_objmgr_pdev_get_pdev_id(pdev),
|
|
|
INVAL_VDEV_ID, INVAL_SCAN_ID, true);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
|
- cfg80211_err("aborting the existing scan is unsuccessful");
|
|
|
+ osif_err("aborting the existing scan is unsuccessful");
|
|
|
return -EBUSY;
|
|
|
}
|
|
|
}
|
|
@@ -430,15 +430,15 @@ int wlan_cfg80211_sched_scan_start(struct wlan_objmgr_vdev *vdev,
|
|
|
|
|
|
if ((!req->networks_cnt) ||
|
|
|
(req->networks_cnt > SCAN_PNO_MAX_SUPP_NETWORKS)) {
|
|
|
- cfg80211_err("Network input is not correct %d",
|
|
|
- req->networks_cnt);
|
|
|
+ osif_err("Network input is not correct %d",
|
|
|
+ req->networks_cnt);
|
|
|
ret = -EINVAL;
|
|
|
goto error;
|
|
|
}
|
|
|
|
|
|
if (request->n_channels > SCAN_PNO_MAX_NETW_CHANNELS_EX) {
|
|
|
- cfg80211_err("Incorrect number of channels %d",
|
|
|
- request->n_channels);
|
|
|
+ osif_err("Incorrect number of channels %d",
|
|
|
+ request->n_channels);
|
|
|
ret = -EINVAL;
|
|
|
goto error;
|
|
|
}
|
|
@@ -457,8 +457,8 @@ int wlan_cfg80211_sched_scan_start(struct wlan_objmgr_vdev *vdev,
|
|
|
channel = request->channels[i]->hw_value;
|
|
|
if ((!enable_dfs_pno_chnl_scan) &&
|
|
|
(wlan_reg_is_dfs_ch(pdev, channel))) {
|
|
|
- cfg80211_debug("Dropping DFS channel :%d",
|
|
|
- channel);
|
|
|
+ osif_debug("Dropping DFS channel :%d",
|
|
|
+ channel);
|
|
|
continue;
|
|
|
}
|
|
|
if (wlan_reg_is_dsrc_chan(pdev, channel))
|
|
@@ -472,7 +472,7 @@ int wlan_cfg80211_sched_scan_start(struct wlan_objmgr_vdev *vdev,
|
|
|
channel,
|
|
|
&ok);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
|
- cfg80211_err("DNBS check failed");
|
|
|
+ osif_err("DNBS check failed");
|
|
|
qdf_mem_free(chl);
|
|
|
chl = NULL;
|
|
|
ret = -EINVAL;
|
|
@@ -484,15 +484,15 @@ int wlan_cfg80211_sched_scan_start(struct wlan_objmgr_vdev *vdev,
|
|
|
len += snprintf(chl + len, 5, "%d ", channel);
|
|
|
valid_ch[num_chan++] = wlan_chan_to_freq(channel);
|
|
|
}
|
|
|
- cfg80211_notice("No. of Scan Channels: %d", num_chan);
|
|
|
- cfg80211_notice("Channel-List: %s", chl);
|
|
|
+ osif_notice("No. of Scan Channels: %d", num_chan);
|
|
|
+ osif_notice("Channel-List: %s", chl);
|
|
|
qdf_mem_free(chl);
|
|
|
chl = NULL;
|
|
|
/* If all channels are DFS and dropped,
|
|
|
* then ignore the PNO request
|
|
|
*/
|
|
|
if (!num_chan) {
|
|
|
- cfg80211_notice("Channel list empty due to filtering of DSRC");
|
|
|
+ osif_notice("Channel list empty due to filtering of DSRC");
|
|
|
ret = -EINVAL;
|
|
|
goto error;
|
|
|
}
|
|
@@ -505,8 +505,8 @@ int wlan_cfg80211_sched_scan_start(struct wlan_objmgr_vdev *vdev,
|
|
|
|
|
|
if ((!req->networks_list[i].ssid.length) ||
|
|
|
(req->networks_list[i].ssid.length > WLAN_SSID_MAX_LEN)) {
|
|
|
- cfg80211_err(" SSID Len %d is not correct for network %d",
|
|
|
- req->networks_list[i].ssid.length, i);
|
|
|
+ osif_err(" SSID Len %d is not correct for network %d",
|
|
|
+ req->networks_list[i].ssid.length, i);
|
|
|
ret = -EINVAL;
|
|
|
goto error;
|
|
|
}
|
|
@@ -518,9 +518,9 @@ int wlan_cfg80211_sched_scan_start(struct wlan_objmgr_vdev *vdev,
|
|
|
req->networks_list[i].encryption = 0; /*eED_ANY */
|
|
|
req->networks_list[i].bc_new_type = 0; /*eBCAST_UNKNOWN */
|
|
|
|
|
|
- cfg80211_notice("Received ssid:%.*s",
|
|
|
- req->networks_list[i].ssid.length,
|
|
|
- req->networks_list[i].ssid.ssid);
|
|
|
+ osif_notice("Received ssid:%.*s",
|
|
|
+ req->networks_list[i].ssid.length,
|
|
|
+ req->networks_list[i].ssid.ssid);
|
|
|
|
|
|
/*Copying list of valid channel into request */
|
|
|
qdf_mem_copy(req->networks_list[i].channels, valid_ch,
|
|
@@ -551,8 +551,8 @@ int wlan_cfg80211_sched_scan_start(struct wlan_objmgr_vdev *vdev,
|
|
|
j++;
|
|
|
}
|
|
|
}
|
|
|
- cfg80211_notice("Number of hidden networks being Configured = %d",
|
|
|
- request->n_ssids);
|
|
|
+ osif_notice("Number of hidden networks being Configured = %d",
|
|
|
+ request->n_ssids);
|
|
|
|
|
|
/*
|
|
|
* Before Kernel 4.4
|
|
@@ -574,9 +574,9 @@ int wlan_cfg80211_sched_scan_start(struct wlan_objmgr_vdev *vdev,
|
|
|
wlan_config_sched_scan_plan(req, request);
|
|
|
req->delay_start_time = wlan_config_sched_scan_start_delay(request);
|
|
|
req->scan_backoff_multiplier = scan_backoff_multiplier;
|
|
|
- cfg80211_notice("Base scan interval: %d sec, scan cycles: %d, slow scan interval %d",
|
|
|
- req->fast_scan_period, req->fast_scan_max_cycles,
|
|
|
- req->slow_scan_period);
|
|
|
+ osif_notice("Base scan interval: %d sec, scan cycles: %d, slow scan interval %d",
|
|
|
+ req->fast_scan_period, req->fast_scan_max_cycles,
|
|
|
+ req->slow_scan_period);
|
|
|
wlan_hdd_sched_scan_update_relative_rssi(req, request);
|
|
|
|
|
|
psoc = wlan_pdev_get_psoc(pdev);
|
|
@@ -591,12 +591,12 @@ int wlan_cfg80211_sched_scan_start(struct wlan_objmgr_vdev *vdev,
|
|
|
ucfg_copy_ie_whitelist_attrs(psoc, &req->ie_whitelist);
|
|
|
status = ucfg_scan_pno_start(vdev, req);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
|
- cfg80211_err("Failed to enable PNO");
|
|
|
+ osif_err("Failed to enable PNO");
|
|
|
ret = -EINVAL;
|
|
|
goto error;
|
|
|
}
|
|
|
|
|
|
- cfg80211_info("PNO scan request offloaded");
|
|
|
+ osif_info("PNO scan request offloaded");
|
|
|
|
|
|
error:
|
|
|
qdf_mem_free(req);
|
|
@@ -609,9 +609,9 @@ int wlan_cfg80211_sched_scan_stop(struct wlan_objmgr_vdev *vdev)
|
|
|
|
|
|
status = ucfg_scan_pno_stop(vdev);
|
|
|
if (QDF_IS_STATUS_ERROR(status))
|
|
|
- cfg80211_err("Failed to disabled PNO");
|
|
|
+ osif_err("Failed to disabled PNO");
|
|
|
else
|
|
|
- cfg80211_info("PNO scan disabled");
|
|
|
+ osif_info("PNO scan disabled");
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
@@ -686,8 +686,8 @@ static int wlan_scan_request_enqueue(struct wlan_objmgr_pdev *pdev,
|
|
|
status = QDF_STATUS_E_RESOURCES;
|
|
|
qdf_mutex_release(&osif_scan->scan_req_q_lock);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
|
- cfg80211_debug_rl("Failed to enqueue Scan Req as max scan %d already queued",
|
|
|
- qdf_list_size(&osif_scan->scan_req_q));
|
|
|
+ osif_rl_debug("Failed to enqueue Scan Req as max scan %d already queued",
|
|
|
+ qdf_list_size(&osif_scan->scan_req_q));
|
|
|
qdf_mem_free(scan_req);
|
|
|
return -EINVAL;
|
|
|
}
|
|
@@ -716,23 +716,23 @@ static QDF_STATUS wlan_scan_request_dequeue(
|
|
|
struct pdev_osif_priv *osif_ctx;
|
|
|
struct osif_scan_pdev *scan_priv;
|
|
|
|
|
|
- cfg80211_debug("Dequeue Scan id: %d", scan_id);
|
|
|
+ osif_debug("Dequeue Scan id: %d", scan_id);
|
|
|
|
|
|
if ((!source) || (!req)) {
|
|
|
- cfg80211_err("source or request is NULL");
|
|
|
+ osif_err("source or request is NULL");
|
|
|
return QDF_STATUS_E_NULL_VALUE;
|
|
|
}
|
|
|
|
|
|
/* Get NL global context from objmgr*/
|
|
|
osif_ctx = wlan_pdev_get_ospriv(pdev);
|
|
|
if (!osif_ctx) {
|
|
|
- cfg80211_err("Failed to retrieve osif context");
|
|
|
+ osif_err("Failed to retrieve osif context");
|
|
|
return status;
|
|
|
}
|
|
|
scan_priv = osif_ctx->osif_scan;
|
|
|
|
|
|
if (qdf_list_empty(&scan_priv->scan_req_q)) {
|
|
|
- cfg80211_info("Scan List is empty");
|
|
|
+ osif_info("Scan List is empty");
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
@@ -740,40 +740,38 @@ static QDF_STATUS wlan_scan_request_dequeue(
|
|
|
if (QDF_STATUS_SUCCESS !=
|
|
|
qdf_list_peek_front(&scan_priv->scan_req_q, &next_node)) {
|
|
|
qdf_mutex_release(&scan_priv->scan_req_q_lock);
|
|
|
- cfg80211_err("Failed to remove Scan Req from queue");
|
|
|
+ osif_err("Failed to remove Scan Req from queue");
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
|
do {
|
|
|
node = next_node;
|
|
|
- scan_req = qdf_container_of(node, struct scan_req,
|
|
|
- node);
|
|
|
+ scan_req = qdf_container_of(node, struct scan_req, node);
|
|
|
if (scan_req->scan_id == scan_id) {
|
|
|
status = qdf_list_remove_node(&scan_priv->scan_req_q,
|
|
|
- node);
|
|
|
+ node);
|
|
|
if (status == QDF_STATUS_SUCCESS) {
|
|
|
*req = scan_req->scan_request;
|
|
|
*source = scan_req->source;
|
|
|
*dev = scan_req->dev;
|
|
|
qdf_mem_free(scan_req);
|
|
|
qdf_mutex_release(&scan_priv->scan_req_q_lock);
|
|
|
- cfg80211_debug("removed Scan id: %d, req = %pK, pending scans %d",
|
|
|
- scan_id, req,
|
|
|
- qdf_list_size(&scan_priv->
|
|
|
- scan_req_q));
|
|
|
+ osif_debug("removed Scan id: %d, req = %pK, pending scans %d",
|
|
|
+ scan_id, req,
|
|
|
+ qdf_list_size(&scan_priv->scan_req_q));
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
} else {
|
|
|
qdf_mutex_release(&scan_priv->scan_req_q_lock);
|
|
|
- cfg80211_err("Failed to remove node scan id %d, pending scans %d",
|
|
|
- scan_id,
|
|
|
- qdf_list_size(&scan_priv->scan_req_q));
|
|
|
+ osif_err("Failed to remove node scan id %d, pending scans %d",
|
|
|
+ scan_id,
|
|
|
+ qdf_list_size(&scan_priv->scan_req_q));
|
|
|
return status;
|
|
|
}
|
|
|
}
|
|
|
} while (QDF_STATUS_SUCCESS ==
|
|
|
qdf_list_peek_next(&scan_priv->scan_req_q, node, &next_node));
|
|
|
qdf_mutex_release(&scan_priv->scan_req_q_lock);
|
|
|
- cfg80211_err("Failed to find scan id %d", scan_id);
|
|
|
+ osif_err("Failed to find scan id %d", scan_id);
|
|
|
|
|
|
return status;
|
|
|
}
|
|
@@ -845,7 +843,7 @@ static void wlan_vendor_scan_callback(struct cfg80211_scan_request *req,
|
|
|
GFP_ATOMIC);
|
|
|
|
|
|
if (!skb) {
|
|
|
- cfg80211_err("skb alloc failed");
|
|
|
+ osif_err("skb alloc failed");
|
|
|
qdf_mem_free(req);
|
|
|
return;
|
|
|
}
|
|
@@ -980,31 +978,29 @@ static void wlan_cfg80211_scan_done_callback(
|
|
|
if (!util_is_scan_completed(event, &success))
|
|
|
return;
|
|
|
|
|
|
- cfg80211_debug("scan ID = %d vdev id = %d, event type %s(%d) reason = %s(%d)",
|
|
|
- scan_id, event->vdev_id,
|
|
|
- util_scan_get_ev_type_name(event->type), event->type,
|
|
|
- util_scan_get_ev_reason_name(event->reason),
|
|
|
- event->reason);
|
|
|
+ osif_debug("scan ID = %d vdev id = %d, event type %s(%d) reason = %s(%d)",
|
|
|
+ scan_id, event->vdev_id,
|
|
|
+ util_scan_get_ev_type_name(event->type), event->type,
|
|
|
+ util_scan_get_ev_reason_name(event->reason),
|
|
|
+ event->reason);
|
|
|
|
|
|
pdev = wlan_vdev_get_pdev(vdev);
|
|
|
status = wlan_scan_request_dequeue(
|
|
|
pdev, scan_id, &req, &source, &netdev);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
|
- cfg80211_err("Dequeue of scan request failed ID: %d", scan_id);
|
|
|
+ osif_err("Dequeue of scan request failed ID: %d", scan_id);
|
|
|
goto allow_suspend;
|
|
|
}
|
|
|
|
|
|
if (!netdev) {
|
|
|
- cfg80211_err("net dev is NULL,Drop scan event Id: %d",
|
|
|
- scan_id);
|
|
|
+ osif_err("net dev is NULL,Drop scan event Id: %d", scan_id);
|
|
|
goto allow_suspend;
|
|
|
}
|
|
|
|
|
|
/* Make sure vdev is active */
|
|
|
status = wlan_objmgr_vdev_try_get_ref(vdev, WLAN_OSIF_ID);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
|
- cfg80211_err("Failed to get vdev reference: scan Id: %d",
|
|
|
- scan_id);
|
|
|
+ osif_err("Failed to get vdev reference: scan Id: %d", scan_id);
|
|
|
goto allow_suspend;
|
|
|
}
|
|
|
|
|
@@ -1173,7 +1169,7 @@ wlan_cfg80211_enqueue_for_cleanup(qdf_list_t *scan_cleanup_q,
|
|
|
qdf_list_remove_node(&scan_priv->scan_req_q,
|
|
|
node)) {
|
|
|
qdf_mutex_release(&scan_priv->scan_req_q_lock);
|
|
|
- cfg80211_err("Failed to remove scan request");
|
|
|
+ osif_err("Failed to remove scan request");
|
|
|
return;
|
|
|
}
|
|
|
qdf_mem_free(scan_req);
|
|
@@ -1196,7 +1192,7 @@ void wlan_cfg80211_cleanup_scan_queue(struct wlan_objmgr_pdev *pdev,
|
|
|
qdf_list_node_t *node = NULL;
|
|
|
|
|
|
if (!pdev) {
|
|
|
- cfg80211_err("pdev is Null");
|
|
|
+ osif_err("pdev is Null");
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -1214,7 +1210,7 @@ void wlan_cfg80211_cleanup_scan_queue(struct wlan_objmgr_pdev *pdev,
|
|
|
while (!qdf_list_empty(&scan_cleanup_q)) {
|
|
|
if (QDF_STATUS_SUCCESS != qdf_list_remove_front(&scan_cleanup_q,
|
|
|
&node)) {
|
|
|
- cfg80211_err("Failed to remove scan request");
|
|
|
+ osif_err("Failed to remove scan request");
|
|
|
return;
|
|
|
}
|
|
|
scan_req = container_of(node, struct scan_req, node);
|
|
@@ -1298,14 +1294,14 @@ int wlan_cfg80211_scan(struct wlan_objmgr_vdev *vdev,
|
|
|
|
|
|
psoc = wlan_pdev_get_psoc(pdev);
|
|
|
if (!psoc) {
|
|
|
- cfg80211_err("Invalid psoc object");
|
|
|
+ osif_err("Invalid psoc object");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
|
/* Get NL global context from objmgr*/
|
|
|
osif_priv = wlan_pdev_get_ospriv(pdev);
|
|
|
if (!osif_priv) {
|
|
|
- cfg80211_err("Invalid osif priv object");
|
|
|
+ osif_err("Invalid osif priv object");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
@@ -1315,7 +1311,7 @@ int wlan_cfg80211_scan(struct wlan_objmgr_vdev *vdev,
|
|
|
*/
|
|
|
if (!wlan_cfg80211_allow_simultaneous_scan(psoc) &&
|
|
|
!qdf_list_empty(&osif_priv->osif_scan->scan_req_q)) {
|
|
|
- cfg80211_err("Simultaneous scan disabled, reject scan");
|
|
|
+ osif_err("Simultaneous scan disabled, reject scan");
|
|
|
return -EBUSY;
|
|
|
}
|
|
|
|
|
@@ -1329,7 +1325,7 @@ int wlan_cfg80211_scan(struct wlan_objmgr_vdev *vdev,
|
|
|
req_id = osif_priv->osif_scan->req_id;
|
|
|
scan_id = ucfg_scan_get_scan_id(psoc);
|
|
|
if (!scan_id) {
|
|
|
- cfg80211_err("Invalid scan id");
|
|
|
+ osif_err("Invalid scan id");
|
|
|
qdf_mem_free(req);
|
|
|
return -EINVAL;
|
|
|
}
|
|
@@ -1366,9 +1362,9 @@ int wlan_cfg80211_scan(struct wlan_objmgr_vdev *vdev,
|
|
|
req->scan_req.num_ssids = request->n_ssids;
|
|
|
|
|
|
if (req->scan_req.num_ssids > WLAN_SCAN_MAX_NUM_SSID) {
|
|
|
- cfg80211_info("number of ssid received %d is greater than MAX %d so copy only MAX nuber of SSIDs",
|
|
|
- req->scan_req.num_ssids,
|
|
|
- WLAN_SCAN_MAX_NUM_SSID);
|
|
|
+ osif_info("number of ssid received %d is greater than MAX %d so copy only MAX nuber of SSIDs",
|
|
|
+ req->scan_req.num_ssids,
|
|
|
+ WLAN_SCAN_MAX_NUM_SSID);
|
|
|
req->scan_req.num_ssids = WLAN_SCAN_MAX_NUM_SSID;
|
|
|
}
|
|
|
/* copy all the ssid's and their length */
|
|
@@ -1381,8 +1377,8 @@ int wlan_cfg80211_scan(struct wlan_objmgr_vdev *vdev,
|
|
|
qdf_mem_copy(pssid->ssid,
|
|
|
&request->ssids[j].ssid[0],
|
|
|
pssid->length);
|
|
|
- cfg80211_info("SSID number %d: %.*s", j, pssid->length,
|
|
|
- pssid->ssid);
|
|
|
+ osif_info("SSID number %d: %.*s", j, pssid->length,
|
|
|
+ pssid->ssid);
|
|
|
}
|
|
|
}
|
|
|
if (request->ssids ||
|
|
@@ -1454,7 +1450,7 @@ int wlan_cfg80211_scan(struct wlan_objmgr_vdev *vdev,
|
|
|
&ok);
|
|
|
|
|
|
if (QDF_IS_STATUS_ERROR(qdf_status)) {
|
|
|
- cfg80211_err("DNBS check failed");
|
|
|
+ osif_err("DNBS check failed");
|
|
|
qdf_mem_free(chl);
|
|
|
chl = NULL;
|
|
|
ret = -EINVAL;
|
|
@@ -1477,13 +1473,13 @@ int wlan_cfg80211_scan(struct wlan_objmgr_vdev *vdev,
|
|
|
if (num_chan >= WLAN_SCAN_MAX_NUM_CHANNELS)
|
|
|
break;
|
|
|
}
|
|
|
- cfg80211_info("Channel-List: %s", chl);
|
|
|
+ osif_info("Channel-List: %s", chl);
|
|
|
qdf_mem_free(chl);
|
|
|
chl = NULL;
|
|
|
- cfg80211_info("No. of Scan Channels: %d", num_chan);
|
|
|
+ osif_info("No. of Scan Channels: %d", num_chan);
|
|
|
}
|
|
|
if (!num_chan) {
|
|
|
- cfg80211_err("Received zero non-dsrc channels");
|
|
|
+ osif_err("Received zero non-dsrc channels");
|
|
|
ret = -EINVAL;
|
|
|
goto err;
|
|
|
}
|
|
@@ -1557,9 +1553,9 @@ int wlan_cfg80211_scan(struct wlan_objmgr_vdev *vdev,
|
|
|
|
|
|
qdf_status = ucfg_scan_start(req);
|
|
|
if (QDF_IS_STATUS_ERROR(qdf_status)) {
|
|
|
- cfg80211_err("ucfg_scan_start returned error %d", qdf_status);
|
|
|
+ osif_err("ucfg_scan_start returned error %d", qdf_status);
|
|
|
if (qdf_status == QDF_STATUS_E_RESOURCES)
|
|
|
- cfg80211_err("HO is in progress.So defer the scan by informing busy");
|
|
|
+ osif_err("HO is in progress.So defer the scan by informing busy");
|
|
|
wlan_scan_request_dequeue(pdev, scan_id, &request,
|
|
|
¶ms->source, &netdev);
|
|
|
if (qdf_list_empty(&osif_priv->osif_scan->scan_req_q)) {
|
|
@@ -1604,14 +1600,14 @@ static int wlan_get_scanid(struct wlan_objmgr_pdev *pdev,
|
|
|
/* Get NL global context from objmgr*/
|
|
|
osif_ctx = wlan_pdev_get_ospriv(pdev);
|
|
|
if (!osif_ctx) {
|
|
|
- cfg80211_err("Failed to retrieve osif context");
|
|
|
+ osif_err("Failed to retrieve osif context");
|
|
|
return ret;
|
|
|
}
|
|
|
scan_priv = osif_ctx->osif_scan;
|
|
|
qdf_mutex_acquire(&scan_priv->scan_req_q_lock);
|
|
|
if (qdf_list_empty(&scan_priv->scan_req_q)) {
|
|
|
qdf_mutex_release(&scan_priv->scan_req_q_lock);
|
|
|
- cfg80211_err("Failed to retrieve scan id");
|
|
|
+ osif_err("Failed to retrieve scan id");
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
@@ -1657,7 +1653,7 @@ QDF_STATUS wlan_abort_scan(struct wlan_objmgr_pdev *pdev,
|
|
|
/* Get NL global context from objmgr*/
|
|
|
osif_ctx = wlan_pdev_get_ospriv(pdev);
|
|
|
if (!osif_ctx) {
|
|
|
- cfg80211_err("Failed to retrieve osif context");
|
|
|
+ osif_err("Failed to retrieve osif context");
|
|
|
qdf_mem_free(req);
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
@@ -1668,7 +1664,7 @@ QDF_STATUS wlan_abort_scan(struct wlan_objmgr_pdev *pdev,
|
|
|
vdev_id, WLAN_OSIF_ID);
|
|
|
|
|
|
if (!vdev) {
|
|
|
- cfg80211_err("Failed get vdev");
|
|
|
+ osif_err("Failed get vdev");
|
|
|
qdf_mem_free(req);
|
|
|
return QDF_STATUS_E_INVAL;
|
|
|
}
|
|
@@ -1690,7 +1686,7 @@ QDF_STATUS wlan_abort_scan(struct wlan_objmgr_pdev *pdev,
|
|
|
else
|
|
|
status = ucfg_scan_cancel(req);
|
|
|
if (QDF_IS_STATUS_ERROR(status))
|
|
|
- cfg80211_err("Cancel scan request failed");
|
|
|
+ osif_err("Cancel scan request failed");
|
|
|
|
|
|
wlan_objmgr_vdev_release_ref(vdev, WLAN_OSIF_ID);
|
|
|
|
|
@@ -1723,7 +1719,7 @@ int wlan_vendor_abort_scan(struct wlan_objmgr_pdev *pdev,
|
|
|
pdev_id = wlan_objmgr_pdev_get_pdev_id(pdev);
|
|
|
if (wlan_cfg80211_nla_parse(tb, QCA_WLAN_VENDOR_ATTR_SCAN_MAX, data,
|
|
|
data_len, scan_policy)) {
|
|
|
- cfg80211_err("Invalid ATTR");
|
|
|
+ osif_err("Invalid ATTR");
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
@@ -1752,8 +1748,7 @@ wlan_get_ieee80211_channel(struct wiphy *wiphy,
|
|
|
freq = wlan_reg_chan_to_freq(pdev, chan_no);
|
|
|
chan = ieee80211_get_channel(wiphy, freq);
|
|
|
if (!chan)
|
|
|
- cfg80211_err("chan is NULL, chan_no: %d freq: %d",
|
|
|
- chan_no, freq);
|
|
|
+ osif_err("chan is NULL, chan_no: %d freq: %d", chan_no, freq);
|
|
|
|
|
|
return chan;
|
|
|
}
|
|
@@ -1824,7 +1819,7 @@ static void wlan_fill_per_chain_rssi(struct cfg80211_inform_bss *data,
|
|
|
uint32_t i;
|
|
|
|
|
|
if (!bss || !data) {
|
|
|
- cfg80211_err("Received bss is NULL");
|
|
|
+ osif_err("Received bss is NULL");
|
|
|
return;
|
|
|
}
|
|
|
for (i = 0; i < WLAN_MGMT_TXRX_HOST_MAX_ANTENNA; i++) {
|
|
@@ -1850,7 +1845,7 @@ wlan_cfg80211_inform_bss_frame_data(struct wiphy *wiphy,
|
|
|
struct cfg80211_inform_bss data = {0};
|
|
|
|
|
|
if (!bss) {
|
|
|
- cfg80211_err("bss is null");
|
|
|
+ osif_err("bss is null");
|
|
|
return NULL;
|
|
|
}
|
|
|
wlan_fill_per_chain_rssi(&data, bss);
|
|
@@ -1896,7 +1891,7 @@ void wlan_cfg80211_inform_bss_frame(struct wlan_objmgr_pdev *pdev,
|
|
|
struct wlan_cfg80211_inform_bss bss_data = {0};
|
|
|
|
|
|
if (!pdev_ospriv) {
|
|
|
- cfg80211_err("os_priv is NULL");
|
|
|
+ osif_err("os_priv is NULL");
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -1905,8 +1900,8 @@ void wlan_cfg80211_inform_bss_frame(struct wlan_objmgr_pdev *pdev,
|
|
|
bss_data.frame_len = wlan_get_frame_len(scan_params);
|
|
|
bss_data.mgmt = qdf_mem_malloc_atomic(bss_data.frame_len);
|
|
|
if (!bss_data.mgmt) {
|
|
|
- cfg80211_err("mem alloc failed for bss %pM seq %d",
|
|
|
- bss_data.mgmt->bssid, scan_params->seq_num);
|
|
|
+ osif_err("mem alloc failed for bss %pM seq %d",
|
|
|
+ bss_data.mgmt->bssid, scan_params->seq_num);
|
|
|
return;
|
|
|
}
|
|
|
qdf_mem_copy(bss_data.mgmt,
|
|
@@ -1927,9 +1922,9 @@ void wlan_cfg80211_inform_bss_frame(struct wlan_objmgr_pdev *pdev,
|
|
|
bss_data.chan = wlan_get_ieee80211_channel(wiphy, pdev,
|
|
|
scan_params->channel.chan_idx);
|
|
|
if (!bss_data.chan) {
|
|
|
- cfg80211_err("Channel not found for bss %pM seq %d chan %d",
|
|
|
- bss_data.mgmt->bssid, scan_params->seq_num,
|
|
|
- scan_params->channel.chan_idx);
|
|
|
+ osif_err("Channel not found for bss %pM seq %d chan %d",
|
|
|
+ bss_data.mgmt->bssid, scan_params->seq_num,
|
|
|
+ scan_params->channel.chan_idx);
|
|
|
qdf_mem_free(bss_data.mgmt);
|
|
|
return;
|
|
|
}
|
|
@@ -1947,8 +1942,8 @@ void wlan_cfg80211_inform_bss_frame(struct wlan_objmgr_pdev *pdev,
|
|
|
|
|
|
bss = wlan_cfg80211_inform_bss_frame_data(wiphy, &bss_data);
|
|
|
if (!bss)
|
|
|
- cfg80211_err("failed to inform bss %pM seq %d",
|
|
|
- bss_data.mgmt->bssid, scan_params->seq_num);
|
|
|
+ osif_err("failed to inform bss %pM seq %d",
|
|
|
+ bss_data.mgmt->bssid, scan_params->seq_num);
|
|
|
else
|
|
|
wlan_cfg80211_put_bss(wiphy, bss);
|
|
|
|
|
@@ -1988,7 +1983,7 @@ void wlan_cfg80211_unlink_bss_list(struct wlan_objmgr_pdev *pdev,
|
|
|
struct wiphy *wiphy;
|
|
|
|
|
|
if (!pdev_ospriv) {
|
|
|
- cfg80211_err("os_priv is NULL");
|
|
|
+ osif_err("os_priv is NULL");
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -1997,10 +1992,10 @@ void wlan_cfg80211_unlink_bss_list(struct wlan_objmgr_pdev *pdev,
|
|
|
scan_entry->ssid.ssid,
|
|
|
scan_entry->ssid.length);
|
|
|
if (!bss) {
|
|
|
- cfg80211_err("BSS %pM not found", scan_entry->bssid.bytes);
|
|
|
+ osif_err("BSS %pM not found", scan_entry->bssid.bytes);
|
|
|
} else {
|
|
|
- cfg80211_debug("cfg80211_unlink_bss called for BSSID %pM",
|
|
|
- scan_entry->bssid.bytes);
|
|
|
+ osif_debug("cfg80211_unlink_bss called for BSSID %pM",
|
|
|
+ scan_entry->bssid.bytes);
|
|
|
cfg80211_unlink_bss(wiphy, bss);
|
|
|
wlan_cfg80211_put_bss(wiphy, bss);
|
|
|
}
|