summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Seto <wseto@qti.qualcomm.com>2014-06-21 01:31:03 -0700
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-06-24 18:39:10 -0700
commitc277866827fbaff41907bb4d4e4eacff56de1e0b (patch)
tree307a2d2d6ad090c9bbcdb67b5081bf00e865d47d
parent6b6d75f55cca32ea812c45ac67ec803407da90f3 (diff)
wlan-cld: Fix layering violation in WE_SET_REASSOC_TRIGGER ioctl
sme functions expect an opaque pointer (tHalHandle) but currently, the tpAniSirGlobal data type is being used. this type should stay private, so we change the pointer type Change-Id: I1b454dca46e6a6ec77440cb805879212f87c4838 CRs-Fixed: 679397
-rw-r--r--CORE/HDD/src/wlan_hdd_wext.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/CORE/HDD/src/wlan_hdd_wext.c b/CORE/HDD/src/wlan_hdd_wext.c
index 9b694085c035..046a3aea9a3b 100644
--- a/CORE/HDD/src/wlan_hdd_wext.c
+++ b/CORE/HDD/src/wlan_hdd_wext.c
@@ -7412,14 +7412,16 @@ static int iw_setnone_getnone(struct net_device *dev, struct iw_request_info *in
WLANTL_TLDebugMessage(VOS_TRUE);
break;
}
- case WE_SET_REASSOC_TRIGGER:
+ case WE_SET_REASSOC_TRIGGER:
{
hdd_adapter_t *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
- tpAniSirGlobal pMac = WLAN_HDD_GET_HAL_CTX(pAdapter);
+ tHalHandle hHal = WLAN_HDD_GET_HAL_CTX(pAdapter);
v_U32_t roamId = 0;
tCsrRoamModifyProfileFields modProfileFields;
- sme_GetModifyProfileFields(pMac, pAdapter->sessionId, &modProfileFields);
- sme_RoamReassoc(pMac, pAdapter->sessionId, NULL, modProfileFields, &roamId, 1);
+ sme_GetModifyProfileFields(hHal, pAdapter->sessionId,
+ &modProfileFields);
+ sme_RoamReassoc(hHal, pAdapter->sessionId,
+ NULL, modProfileFields, &roamId, 1);
return 0;
}