Merge "qcacmn: Fix peer ref count issue in p2p_mgmt_tx" into wlan-cmn.driver.lnx.2.0-dev

This commit is contained in:
CNSS_WLAN Service
2017-04-10 12:32:04 -07:00
committad av Gerrit - the friendly Code Review server
förälder f3c5a24628 8c2ce41254
incheckning 33aeb5cac2

Visa fil

@@ -784,11 +784,11 @@ static QDF_STATUS p2p_mgmt_tx(struct tx_action_context *tx_ctx,
wh = (struct wlan_frame_hdr *)frame; wh = (struct wlan_frame_hdr *)frame;
mac_addr = wh->i_addr1; mac_addr = wh->i_addr1;
peer = wlan_objmgr_get_peer(psoc, mac_addr, WLAN_MGMT_NB_ID); peer = wlan_objmgr_get_peer(psoc, mac_addr, WLAN_P2P_ID);
if (!peer) { if (!peer) {
mac_addr = wh->i_addr2; mac_addr = wh->i_addr2;
peer = wlan_objmgr_get_peer(psoc, mac_addr, peer = wlan_objmgr_get_peer(psoc, mac_addr,
WLAN_MGMT_NB_ID); WLAN_P2P_ID);
} }
if (!peer) { if (!peer) {
@@ -813,6 +813,8 @@ static QDF_STATUS p2p_mgmt_tx(struct tx_action_context *tx_ctx,
tx_comp_cb, tx_ota_comp_cb, tx_comp_cb, tx_ota_comp_cb,
WLAN_UMAC_COMP_P2P, &mgmt_param); WLAN_UMAC_COMP_P2P, &mgmt_param);
wlan_objmgr_peer_release_ref(peer, WLAN_P2P_ID);
return status; return status;
} }