Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: r8712u: Set device type to wlan

The latest version of NetworkManager does not recognize the device as wireless
without this change.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Larry Finger and committed by
Greg Kroah-Hartman
3a21f00a 9fe526e1

+5
+5
drivers/staging/rtl8712/usb_intf.c
··· 353 353 } 354 354 } 355 355 356 + static const struct device_type wlan_type = { 357 + .name = "wlan", 358 + }; 359 + 356 360 /* 357 361 * drv_init() - a device potentially for us 358 362 * ··· 392 388 padapter->pusb_intf = pusb_intf; 393 389 usb_set_intfdata(pusb_intf, pnetdev); 394 390 SET_NETDEV_DEV(pnetdev, &pusb_intf->dev); 391 + pnetdev->dev.type = &wlan_type; 395 392 /* step 2. */ 396 393 padapter->dvobj_init = &r8712_usb_dvobj_init; 397 394 padapter->dvobj_deinit = &r8712_usb_dvobj_deinit;