mac80211: kmod-rtl_pci: fix dependencies
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 5 Sep 2013 20:17:28 +0000 (20:17 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 5 Sep 2013 20:17:28 +0000 (20:17 +0000)
This fixes the following error:
rtl_pci: Unknown symbol rtl_lps_leave (err 0)
rtl_pci: Unknown symbol rtl_lps_enter (err 0)
rtl8192ce: Unknown symbol rtl_pci_disconnect (err 0)
rtl8192ce: Unknown symbol rtl_pci_probe (err 0)
rtl8192de: Unknown symbol rtl_pci_disconnect (err 0)
rtl8192de: Unknown symbol rtl_pci_probe (err 0)
rtl8192se: Unknown symbol rtl_pci_disconnect (err 0)
rtl8192se: Unknown symbol rtl_pci_probe (err 0)

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 37905

package/kernel/mac80211/patches/300-pending_work.patch

index 11b9ec4c3bc4d3f9d79168cdcb397f8d8eaef5ca..9e1a55432fe6e93cb43a5b0097a1ded2b638784a 100644 (file)
        If you choose to build it as a module, it will be called rtl8192cu
  
 +config RTLWIFI
-+      tristate "Realtek common driver part"
++      tristate
 +      depends on m
 +      select BACKPORT_FW_LOADER
 +
 +config RTLWIFI_PCI
-+      depends on m
 +      tristate
++      depends on m
 +
 +config RTLWIFI_USB
-+      depends on m
 +      tristate
++      depends on m
 +
 +config RTLWIFI_DEBUG
 +      bool "Debugging output for rtlwifi driver family"
        tristate
        depends on m
        depends on RTL8192CE || RTL8192CU
-       default m
+-      default m
++      default y
 +
 +endif
 --- a/drivers/net/wireless/rtlwifi/Makefile
  
  obj-$(CPTCFG_RTL8192C_COMMON) += rtl8192c/
  obj-$(CPTCFG_RTL8192CE)               += rtl8192ce/
+--- a/drivers/net/wireless/rtlwifi/ps.h
++++ b/drivers/net/wireless/rtlwifi/ps.h
+@@ -49,5 +49,6 @@ void rtl_swlps_rf_awake(struct ieee80211
+ void rtl_swlps_rf_sleep(struct ieee80211_hw *hw);
+ void rtl_p2p_ps_cmd(struct ieee80211_hw *hw, u8 p2p_ps_state);
+ void rtl_p2p_info(struct ieee80211_hw *hw, void *data, unsigned int len);
++void rtl_lps_change_work_callback(struct work_struct *work);
+ #endif
 --- a/drivers/net/wireless/rtlwifi/base.c
 +++ b/drivers/net/wireless/rtlwifi/base.c
 @@ -173,6 +173,7 @@ u8 rtl_tid_to_ac(u8 tid)
  
  static const u16 pcibridge_vendors[PCI_BRIDGE_VENDOR_MAX] = {
        PCI_VENDOR_ID_INTEL,
-@@ -1899,7 +1906,7 @@ int rtl_pci_probe(struct pci_dev *pdev,
+@@ -1008,19 +1015,6 @@ static void _rtl_pci_prepare_bcn_tasklet
+       return;
+ }
+-static void rtl_lps_change_work_callback(struct work_struct *work)
+-{
+-      struct rtl_works *rtlworks =
+-          container_of(work, struct rtl_works, lps_change_work);
+-      struct ieee80211_hw *hw = rtlworks->hw;
+-      struct rtl_priv *rtlpriv = rtl_priv(hw);
+-
+-      if (rtlpriv->enter_ps)
+-              rtl_lps_enter(hw);
+-      else
+-              rtl_lps_leave(hw);
+-}
+-
+ static void _rtl_pci_init_trx_var(struct ieee80211_hw *hw)
+ {
+       struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
+@@ -1899,7 +1893,7 @@ int rtl_pci_probe(struct pci_dev *pdev,
        rtlpriv->rtlhal.interface = INTF_PCI;
        rtlpriv->cfg = (struct rtl_hal_cfg *)(id->driver_data);
        rtlpriv->intf_ops = &rtl_pci_ops;
         *init dbgp flags before all
 --- a/drivers/net/wireless/rtlwifi/ps.c
 +++ b/drivers/net/wireless/rtlwifi/ps.c
-@@ -269,6 +269,7 @@ void rtl_ips_nic_on(struct ieee80211_hw 
+@@ -269,6 +269,7 @@ void rtl_ips_nic_on(struct ieee80211_hw
  
        spin_unlock_irqrestore(&rtlpriv->locks.ips_lock, flags);
  }
  
  void rtl_swlps_rf_awake(struct ieee80211_hw *hw)
  {
-@@ -922,3 +924,4 @@ void rtl_p2p_info(struct ieee80211_hw *h
+@@ -611,6 +613,19 @@ void rtl_swlps_rf_sleep(struct ieee80211
+                       MSECS(sleep_intv * mac->vif->bss_conf.beacon_int - 40));
+ }
++void rtl_lps_change_work_callback(struct work_struct *work)
++{
++      struct rtl_works *rtlworks =
++          container_of(work, struct rtl_works, lps_change_work);
++      struct ieee80211_hw *hw = rtlworks->hw;
++      struct rtl_priv *rtlpriv = rtl_priv(hw);
++
++      if (rtlpriv->enter_ps)
++              rtl_lps_enter(hw);
++      else
++              rtl_lps_leave(hw);
++}
++EXPORT_SYMBOL_GPL(rtl_lps_change_work_callback);
+ void rtl_swlps_wq_callback(void *data)
+ {
+@@ -922,3 +937,4 @@ void rtl_p2p_info(struct ieee80211_hw *h
        else
                rtl_p2p_noa_ie(hw, data, len - FCS_LEN);
  }
  
  #define       REALTEK_USB_VENQT_READ                  0xC0
  #define       REALTEK_USB_VENQT_WRITE                 0x40
+@@ -1070,6 +1077,8 @@ int rtl_usb_probe(struct usb_interface *
+       spin_lock_init(&rtlpriv->locks.usb_lock);
+       INIT_WORK(&rtlpriv->works.fill_h2c_cmd,
+                 rtl_fill_h2c_cmd_work_callback);
++      INIT_WORK(&rtlpriv->works.lps_change_work,
++                rtl_lps_change_work_callback);
+       rtlpriv->usb_data_index = 0;
+       init_completion(&rtlpriv->firmware_loading_complete);
 --- a/drivers/net/wireless/ath/ath9k/ath9k.h
 +++ b/drivers/net/wireless/ath/ath9k/ath9k.h
 @@ -72,17 +72,12 @@ struct ath_config {