From 4955a5a8d6eb9418c4cbb3dac8da6351c7bca989 Mon Sep 17 00:00:00 2001 From: Reynaldo Gil Pons Date: Thu, 13 Oct 2016 09:30:00 -0400 Subject: [PATCH] corrected interface name --- os_dep/linux/os_intfs.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index b349d5b..1d2c0fc 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -725,9 +725,15 @@ static const struct net_device_ops rtw_netdev_ops = { }; #endif +static const struct device_type wlan_type = { + .name = "wlan", +}; + int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname) { - _adapter *padapter = rtw_netdev_priv(pnetdev); + _adapter *padapter; + pnetdev->dev.type = &wlan_type; + padapter = rtw_netdev_priv(pnetdev); #ifdef CONFIG_EASY_REPLACEMENT struct net_device *TargetNetdev = NULL;