|
@@ -13145,6 +13145,7 @@ done:
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0)
|
|
|
/**
|
|
|
* wlan_hdd_cfg80211_change_iface() - change interface cfg80211 op
|
|
|
* @wiphy: Pointer to the wiphy structure
|
|
@@ -13170,6 +13171,22 @@ static int wlan_hdd_cfg80211_change_iface(struct wiphy *wiphy,
|
|
|
|
|
|
return ret;
|
|
|
}
|
|
|
+#else
|
|
|
+static int wlan_hdd_cfg80211_change_iface(struct wiphy *wiphy,
|
|
|
+ struct net_device *ndev,
|
|
|
+ enum nl80211_iftype type,
|
|
|
+ struct vif_params *params)
|
|
|
+{
|
|
|
+ int ret;
|
|
|
+
|
|
|
+ cds_ssr_protect(__func__);
|
|
|
+ ret = __wlan_hdd_cfg80211_change_iface(wiphy, ndev, type,
|
|
|
+ ¶ms->flags, params);
|
|
|
+ cds_ssr_unprotect(__func__);
|
|
|
+
|
|
|
+ return ret;
|
|
|
+}
|
|
|
+#endif /* KERNEL_VERSION(4, 12, 0) */
|
|
|
|
|
|
#if defined(FEATURE_WLAN_TDLS) && !defined(CONVERGED_TDLS_ENABLE)
|
|
|
static bool wlan_hdd_is_duplicate_channel(uint8_t *arr,
|