diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-10-24 22:00:34 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-10-24 22:00:34 +0000 |
commit | f328951d4654bf5b9b33750b5aaa23b4fdab53bf (patch) | |
tree | 5b0cff88298d2619af82c8a46e07b3ddbe7e5390 /package/kernel/mac80211/patches/345-rtl8192cu-Call-ieee80211_register_hw-from-rtl_usb_pr.patch | |
parent | 031a9666b622f8cc0efc37f1c2f0cc7d3a544373 (diff) | |
download | master-187ad058-f328951d4654bf5b9b33750b5aaa23b4fdab53bf.tar.gz master-187ad058-f328951d4654bf5b9b33750b5aaa23b4fdab53bf.tar.bz2 master-187ad058-f328951d4654bf5b9b33750b5aaa23b4fdab53bf.zip |
rtlwifi: unbreak usb drivers
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43052 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/345-rtl8192cu-Call-ieee80211_register_hw-from-rtl_usb_pr.patch')
-rw-r--r-- | package/kernel/mac80211/patches/345-rtl8192cu-Call-ieee80211_register_hw-from-rtl_usb_pr.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/345-rtl8192cu-Call-ieee80211_register_hw-from-rtl_usb_pr.patch b/package/kernel/mac80211/patches/345-rtl8192cu-Call-ieee80211_register_hw-from-rtl_usb_pr.patch new file mode 100644 index 0000000000..b4166243d8 --- /dev/null +++ b/package/kernel/mac80211/patches/345-rtl8192cu-Call-ieee80211_register_hw-from-rtl_usb_pr.patch @@ -0,0 +1,33 @@ +From: Karsten Wiese <fzuuzf@googlemail.com> +Date: Wed, 22 Oct 2014 15:47:33 +0200 +Subject: [PATCH] rtl8192cu: Call ieee80211_register_hw from rtl_usb_probe + +In a previous patch the call to ieee80211_register_hw was moved from the +load firmware callback to the rtl_pci_probe only. +rt8192cu also uses this callback. Currently it doesnt create a wlan%d device. +Fill in the call to ieee80211_register_hw in rtl_usb_probe. + +Signed-off-by: Karsten Wiese <fzuuzf@googlemail.com> +--- + +--- a/drivers/net/wireless/rtlwifi/usb.c ++++ b/drivers/net/wireless/rtlwifi/usb.c +@@ -1117,7 +1117,18 @@ int rtl_usb_probe(struct usb_interface * + } + rtlpriv->cfg->ops->init_sw_leds(hw); + ++ err = ieee80211_register_hw(hw); ++ if (err) { ++ RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, ++ "Can't register mac80211 hw.\n"); ++ err = -ENODEV; ++ goto error_out; ++ } ++ rtlpriv->mac80211.mac80211_registered = 1; ++ ++ set_bit(RTL_STATUS_INTERFACE_START, &rtlpriv->status); + return 0; ++ + error_out: + rtl_deinit_core(hw); + _rtl_usb_io_handler_release(hw); |