qcacmn: Update function name and remove redundant code
Rename scan_tx_ops_register for consistency Remove redundant lines of code in tx_ops registration Change-Id: I3ade89f7eeb1f506f75b5c859dd4bc4242414628 CRs-Fixed: 2127952
This commit is contained in:
@@ -45,6 +45,10 @@ wlan_vdev_get_scan_txops(struct wlan_objmgr_vdev *vdev)
|
||||
struct wlan_objmgr_psoc *psoc = NULL;
|
||||
|
||||
psoc = wlan_vdev_get_psoc(vdev);
|
||||
if (!psoc) {
|
||||
scm_err("NULL psoc");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return wlan_psoc_get_scan_txops(psoc);
|
||||
}
|
||||
@@ -55,6 +59,10 @@ wlan_vdev_get_scan_rxops(struct wlan_objmgr_vdev *vdev)
|
||||
struct wlan_objmgr_psoc *psoc = NULL;
|
||||
|
||||
psoc = wlan_vdev_get_psoc(vdev);
|
||||
if (!psoc) {
|
||||
scm_err("NULL psoc");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return &((psoc->soc_cb.rx_ops.scan));
|
||||
}
|
||||
|
Reference in New Issue
Block a user