summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CORE/EPPING/src/epping_txrx.c7
-rw-r--r--CORE/HDD/src/wlan_hdd_hostapd.c8
-rwxr-xr-xCORE/HDD/src/wlan_hdd_main.c8
3 files changed, 20 insertions, 3 deletions
diff --git a/CORE/EPPING/src/epping_txrx.c b/CORE/EPPING/src/epping_txrx.c
index 38f77b9b6db0..26f9a1406c03 100644
--- a/CORE/EPPING/src/epping_txrx.c
+++ b/CORE/EPPING/src/epping_txrx.c
@@ -355,7 +355,12 @@ epping_adapter_t *epping_add_adapter(epping_context_t *pEpping_ctx,
struct net_device *dev;
epping_adapter_t *pAdapter;
- dev = alloc_netdev(sizeof(epping_adapter_t), "wifi%d", ether_setup);
+ dev = alloc_netdev(sizeof(epping_adapter_t),
+ "wifi%d",
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0)) || defined(WITH_BACKPORTS)
+ NET_NAME_UNKNOWN,
+#endif
+ ether_setup);
if (dev == NULL) {
EPPING_LOG(VOS_TRACE_LEVEL_FATAL,
"%s: Cannot allocate epping_adapter_t\n", __func__);
diff --git a/CORE/HDD/src/wlan_hdd_hostapd.c b/CORE/HDD/src/wlan_hdd_hostapd.c
index 6171a793b8b0..e02687c17e46 100644
--- a/CORE/HDD/src/wlan_hdd_hostapd.c
+++ b/CORE/HDD/src/wlan_hdd_hostapd.c
@@ -5994,7 +5994,13 @@ hdd_adapter_t* hdd_wlan_create_ap_dev( hdd_context_t *pHddCtx, tSirMacAddr macAd
hddLog(VOS_TRACE_LEVEL_DEBUG, "%s: iface_name = %s", __func__, iface_name);
- pWlanHostapdDev = alloc_netdev_mq(sizeof(hdd_adapter_t), iface_name, ether_setup, NUM_TX_QUEUES);
+ pWlanHostapdDev = alloc_netdev_mq(sizeof(hdd_adapter_t),
+ iface_name,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0)) || defined(WITH_BACKPORTS)
+ NET_NAME_UNKNOWN,
+#endif
+ ether_setup,
+ NUM_TX_QUEUES);
if (pWlanHostapdDev != NULL)
{
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 2f7fbf9f77a9..f22a7861523b 100755
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -7757,7 +7757,13 @@ static hdd_adapter_t* hdd_alloc_station_adapter( hdd_context_t *pHddCtx, tSirMac
/*
* cfg80211 initialization and registration....
*/
- pWlanDev = alloc_netdev_mq(sizeof( hdd_adapter_t ), name, ether_setup, NUM_TX_QUEUES);
+ pWlanDev = alloc_netdev_mq(sizeof( hdd_adapter_t ),
+ name,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0)) || defined(WITH_BACKPORTS)
+ NET_NAME_UNKNOWN,
+#endif
+ ether_setup,
+ NUM_TX_QUEUES);
if(pWlanDev != NULL)
{