qcacmn: Fix passing right pointer as pdev object
As part of init FR, osif_pdev object stores pdev object, so same has to be passed as param. Change-Id: Ic9c41e5ef54fdb80898f10f27a86970e76d1f24c CRs-Fixed: 2188451
This commit is contained in:
@@ -2267,18 +2267,13 @@ void dp_mark_peer_inact(void *peer_handle, bool inactive)
|
|||||||
peer->peer_bs_inact_flag = inactive ? 1 : 0;
|
peer->peer_bs_inact_flag = inactive ? 1 : 0;
|
||||||
|
|
||||||
if (inactive_old != inactive) {
|
if (inactive_old != inactive) {
|
||||||
struct ieee80211com *ic;
|
|
||||||
struct ol_ath_softc_net80211 *scn;
|
|
||||||
|
|
||||||
scn = (struct ol_ath_softc_net80211 *)pdev->osif_pdev;
|
|
||||||
ic = &scn->sc_ic;
|
|
||||||
/**
|
/**
|
||||||
* Note: a node lookup can happen in RX datapath context
|
* Note: a node lookup can happen in RX datapath context
|
||||||
* when a node changes from inactive to active (at most once
|
* when a node changes from inactive to active (at most once
|
||||||
* per inactivity timeout threshold)
|
* per inactivity timeout threshold)
|
||||||
*/
|
*/
|
||||||
if (soc->cdp_soc.ol_ops->record_act_change) {
|
if (soc->cdp_soc.ol_ops->record_act_change) {
|
||||||
soc->cdp_soc.ol_ops->record_act_change(ic->ic_pdev_obj,
|
soc->cdp_soc.ol_ops->record_act_change(pdev->osif_pdev,
|
||||||
peer->mac_addr.raw, !inactive);
|
peer->mac_addr.raw, !inactive);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user