wlan: Update APIs for 3.10 kernel
Some CFG/NL80211 APIs are changed during the kernel update to 3.10
version. Update the corresponding APIs in host driver to fix the
compilation errors.
Change-Id: I077064eafc14f2dacf1b76a785d6a272a5117e6e
CRs-Fixed: 531214
diff --git a/CORE/HDD/src/wlan_hdd_assoc.c b/CORE/HDD/src/wlan_hdd_assoc.c
index e4e3d16..ed040be 100644
--- a/CORE/HDD/src/wlan_hdd_assoc.c
+++ b/CORE/HDD/src/wlan_hdd_assoc.c
@@ -1334,7 +1334,11 @@
}
}
- cfg80211_put_bss(bss);
+ cfg80211_put_bss(
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0))
+ pHddCtx->wiphy,
+#endif
+ bss);
// Register the Station with TL after associated...
vosStatus = hdd_roamRegisterSTA( pAdapter,
pRoamInfo,
@@ -1556,7 +1560,11 @@
}
cfg80211_ibss_joined(pAdapter->dev, bss->bssid, GFP_KERNEL);
- cfg80211_put_bss(bss);
+ cfg80211_put_bss(
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0))
+ pHddCtx->wiphy,
+#endif
+ bss);
}
netif_carrier_on(pAdapter->dev);
@@ -1692,7 +1700,11 @@
}
/* send ibss join indication to nl80211 */
cfg80211_ibss_joined(pAdapter->dev, &pRoamInfo->bssid[0], GFP_KERNEL);
- cfg80211_put_bss(bss);
+ cfg80211_put_bss(
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0))
+ WLAN_HDD_GET_CTX(pAdapter)->wiphy,
+#endif
+ bss);
return( eHAL_STATUS_SUCCESS );
}