Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa714872 authored by Ramanasarvesh Sadula's avatar Ramanasarvesh Sadula Committed by Dundi Raviteja
Browse files

wlan: Migrate to 4.14 kernel to support change interface API

Migrate to wlan_hdd_cfg80211_change_iface API as per 4.14 kernel.

Change-Id: I713b31a1b00ac1d0e02f2dac65292498bb10679b
CRs-Fixed: 2698029
parent ff230765
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -12926,14 +12926,24 @@ int __wlan_hdd_cfg80211_change_iface( struct wiphy *wiphy,
 * FUNCTION: wlan_hdd_cfg80211_change_iface
 * FUNCTION: wlan_hdd_cfg80211_change_iface
 * wrapper function to protect the actual implementation from SSR.
 * wrapper function to protect the actual implementation from SSR.
 */
 */
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
int wlan_hdd_cfg80211_change_iface(struct wiphy *wiphy,
                                   struct net_device *ndev,
                                   enum nl80211_iftype type,
                                   struct vif_params *params)
#else
int wlan_hdd_cfg80211_change_iface( struct wiphy *wiphy,
int wlan_hdd_cfg80211_change_iface( struct wiphy *wiphy,
                                    struct net_device *ndev,
                                    struct net_device *ndev,
                                    enum nl80211_iftype type,
                                    enum nl80211_iftype type,
                                    u32 *flags,
                                    u32 *flags,
                                    struct vif_params *params
                                    struct vif_params *params
                                  )
                                  )
#endif
{
{
    int ret;
    int ret;
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
    u32 *flags = NULL;
#endif
    vos_ssr_protect(__func__);
    vos_ssr_protect(__func__);
    ret = __wlan_hdd_cfg80211_change_iface(wiphy, ndev, type, flags, params);
    ret = __wlan_hdd_cfg80211_change_iface(wiphy, ndev, type, flags, params);