diff options
| author | Srinivas Girigowda <sgirigow@qca.qualcomm.com> | 2014-12-04 14:56:34 -0800 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2014-12-08 17:14:10 +0530 |
| commit | 03888124ef0923c05bece93e5a3f9faf6fa08eee (patch) | |
| tree | 1356edda9ff966f30fa43af75f83a4c6ebe4486f | |
| parent | 6cf403e2d6c4e87d4c3aa5486780c46a22ed44b5 (diff) | |
qcacld: Fix compilation error with kernel version > (3,11,0)
Fix compilation error with kernel version > (3,11,0)
Change-Id: I9ce602cc5088d31a2e191515eca252ab216bde63
CRs-Fixed: 766756
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_assoc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_assoc.c b/CORE/HDD/src/wlan_hdd_assoc.c index 1afea1c7a68f..86d75611224c 100644 --- a/CORE/HDD/src/wlan_hdd_assoc.c +++ b/CORE/HDD/src/wlan_hdd_assoc.c @@ -3156,10 +3156,18 @@ hdd_indicateUnprotMgmtFrame(hdd_adapter_t *pAdapter, tANI_U32 nFrameLength, /* Get pAdapter from Destination mac address of the frame */ if (type == SIR_MAC_MGMT_FRAME && subType == SIR_MAC_MGMT_DISASSOC) { +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)) + cfg80211_rx_unprot_mlme_mgmt(pAdapter->dev, pbFrames, nFrameLength); +#else cfg80211_send_unprot_disassoc(pAdapter->dev, pbFrames, nFrameLength); +#endif pAdapter->hdd_stats.hddPmfStats.numUnprotDisassocRx++; } else if (type == SIR_MAC_MGMT_FRAME && subType == SIR_MAC_MGMT_DEAUTH) { +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)) + cfg80211_rx_unprot_mlme_mgmt(pAdapter->dev, pbFrames, nFrameLength); +#else cfg80211_send_unprot_deauth(pAdapter->dev, pbFrames, nFrameLength); +#endif pAdapter->hdd_stats.hddPmfStats.numUnprotDeauthRx++; } else { hddLog(LOGE, FL("Frame type %d and subtype %d are not valid"), type, subType); |
