Commit 0baa0fd7 authored by Chaoming_Li's avatar Chaoming_Li Committed by John W. Linville

rtlwifi: Convert core routines for addition of rtl8192se and rtl8192de

Convert core routines for addition of RTL8192SE and RTL8192DE code.

Additional files are changed to allow compilation.
Signed-off-by: default avatarChaoming_Li <chaoming_li@realsil.com.cn>
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 46a6272c
...@@ -1182,14 +1182,8 @@ int rtl_send_smps_action(struct ieee80211_hw *hw, ...@@ -1182,14 +1182,8 @@ int rtl_send_smps_action(struct ieee80211_hw *hw,
info->control.rates[0].idx = 0; info->control.rates[0].idx = 0;
info->control.sta = sta; info->control.sta = sta;
info->band = hw->conf.channel->band; info->band = hw->conf.channel->band;
#if 0
rtlpriv->intf_ops->adapter_tx(hw, skb, &tcb_desc); rtlpriv->intf_ops->adapter_tx(hw, skb, &tcb_desc);
#else
rtlpriv->intf_ops->adapter_tx(hw, skb);
#endif
} }
return 1;
err_free: err_free:
return 0; return 0;
} }
......
This diff is collapsed.
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
* Hsinchu 300, Taiwan. * Hsinchu 300, Taiwan.
* *
* Larry Finger <Larry.Finger@lwfinger.net> * Larry Finger <Larry.Finger@lwfinger.net>
*
*****************************************************************************/ *****************************************************************************/
#ifndef __RTL_CORE_H__ #ifndef __RTL_CORE_H__
......
...@@ -424,6 +424,10 @@ void rtl_swlps_wq_callback(void *data) ...@@ -424,6 +424,10 @@ void rtl_swlps_wq_callback(void *data)
{ {
} }
void rtl_swlps_rf_awake(struct ieee80211_hw *hw)
{
}
/*Enter the leisure power save mode.*/ /*Enter the leisure power save mode.*/
void rtl_lps_enter(struct ieee80211_hw *hw) void rtl_lps_enter(struct ieee80211_hw *hw)
{ {
......
...@@ -504,7 +504,7 @@ void rtl92cu_tx_fill_desc(struct ieee80211_hw *hw, ...@@ -504,7 +504,7 @@ void rtl92cu_tx_fill_desc(struct ieee80211_hw *hw,
struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
bool defaultadapter = true; bool defaultadapter = true;
struct ieee80211_sta *sta; struct ieee80211_sta *sta = info->control.sta;
struct rtl_tcb_desc tcb_desc; struct rtl_tcb_desc tcb_desc;
u8 *qc = ieee80211_get_qos_ctl(hdr); u8 *qc = ieee80211_get_qos_ctl(hdr);
u8 tid = qc[0] & IEEE80211_QOS_CTL_TID_MASK; u8 tid = qc[0] & IEEE80211_QOS_CTL_TID_MASK;
......
...@@ -885,7 +885,8 @@ static void _rtl_usb_tx_preprocess(struct ieee80211_hw *hw, struct sk_buff *skb, ...@@ -885,7 +885,8 @@ static void _rtl_usb_tx_preprocess(struct ieee80211_hw *hw, struct sk_buff *skb,
rtlpriv->cfg->ops->led_control(hw, LED_CTL_TX); rtlpriv->cfg->ops->led_control(hw, LED_CTL_TX);
} }
static int rtl_usb_tx(struct ieee80211_hw *hw, struct sk_buff *skb) static int rtl_usb_tx(struct ieee80211_hw *hw, struct sk_buff *skb,
struct rtl_tcb_desc *dummy)
{ {
struct rtl_usb *rtlusb = rtl_usbdev(rtl_usbpriv(hw)); struct rtl_usb *rtlusb = rtl_usbdev(rtl_usbpriv(hw));
struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
......
...@@ -1445,12 +1445,8 @@ struct rtl_intf_ops { ...@@ -1445,12 +1445,8 @@ struct rtl_intf_ops {
int (*adapter_start) (struct ieee80211_hw *hw); int (*adapter_start) (struct ieee80211_hw *hw);
void (*adapter_stop) (struct ieee80211_hw *hw); void (*adapter_stop) (struct ieee80211_hw *hw);
#if 0 /* temporary */
int (*adapter_tx) (struct ieee80211_hw *hw, struct sk_buff *skb, int (*adapter_tx) (struct ieee80211_hw *hw, struct sk_buff *skb,
struct rtl_tcb_desc *ptcb_desc); struct rtl_tcb_desc *ptcb_desc);
#else
int (*adapter_tx) (struct ieee80211_hw *hw, struct sk_buff *skb);
#endif
void (*flush)(struct ieee80211_hw *hw, bool drop); void (*flush)(struct ieee80211_hw *hw, bool drop);
int (*reset_trx_ring) (struct ieee80211_hw *hw); int (*reset_trx_ring) (struct ieee80211_hw *hw);
bool (*waitq_insert) (struct ieee80211_hw *hw, struct sk_buff *skb); bool (*waitq_insert) (struct ieee80211_hw *hw, struct sk_buff *skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment