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:
akosigi
2017-11-03 11:36:32 +05:30
committed by snandini
parent 91f2654d56
commit 6e19edc1e4
4 changed files with 23 additions and 10 deletions

View File

@@ -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));
}