Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236103
b: refs/heads/master
c: 9f17b07
h: refs/heads/master
i:
  236101: c8c8f0b
  236099: 6061b8f
  236095: f1cfe59
v: v3
  • Loading branch information
Mike McCormack authored and Greg Kroah-Hartman committed Feb 23, 2011
1 parent ff28803 commit 3ec8207
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 33 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9c100d50fc7d9f0f3e5309c704da044ece2da5c6
refs/heads/master: 9f17b076387f2fdb507578efe8651bb4786de2a4
11 changes: 0 additions & 11 deletions trunk/drivers/staging/rtl8192e/r8192E.h
Original file line number Diff line number Diff line change
Expand Up @@ -1048,27 +1048,17 @@ void write_nic_byte(struct r8192_priv *priv, int x,u8 y);
void write_nic_word(struct r8192_priv *priv, int x,u16 y);
void write_nic_dword(struct r8192_priv *priv, int x,u32 y);

void rtl8192_halt_adapter(struct net_device *dev, bool reset);
void rtl8192_rx_enable(struct net_device *);
void rtl8192_tx_enable(struct net_device *);

void rtl8192_update_msr(struct net_device *dev);
int rtl8192_down(struct net_device *dev);
int rtl8192_up(struct net_device *dev);
void rtl8192_commit(struct net_device *dev);
void rtl8192_set_chan(struct net_device *dev,short ch);
void write_phy(struct net_device *dev, u8 adr, u8 data);
void write_phy_cck(struct net_device *dev, u8 adr, u32 data);
void write_phy_ofdm(struct net_device *dev, u8 adr, u32 data);
void CamResetAllEntry(struct net_device* dev);
void EnableHWSecurityConfig8192(struct net_device *dev);
void setKey(struct net_device *dev, u8 EntryNo, u8 KeyIndex, u16 KeyType, const u8 *MacAddr, u8 DefaultKey, u32 *KeyContent );
void dm_cck_txpower_adjust(struct net_device *dev, bool binch14);
void firmware_init_param(struct net_device *dev);
RT_STATUS cmpk_message_handle_tx(struct net_device *dev, u8* codevirtualaddress, u32 packettype, u32 buffer_len);
void rtl8192_hw_wakeup_wq (struct work_struct *work);

short rtl8192_is_tx_queue_empty(struct net_device *dev);
#ifdef ENABLE_IPS
void IPSEnter(struct net_device *dev);
void IPSLeave(struct net_device *dev);
Expand All @@ -1085,6 +1075,5 @@ void LeisurePSLeave(struct net_device *dev);
bool NicIFEnableNIC(struct net_device* dev);
bool NicIFDisableNIC(struct net_device* dev);

void rtl8192_irq_disable(struct net_device *dev);
void PHY_SetRtl8192eRfOff(struct net_device* dev);
#endif
27 changes: 10 additions & 17 deletions trunk/drivers/staging/rtl8192e/r8192E_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ static void rtl8192_proc_init_one(struct net_device *dev)
}
}

short check_nic_enough_desc(struct net_device *dev, int prio)
static short check_nic_enough_desc(struct net_device *dev, int prio)
{
struct r8192_priv *priv = ieee80211_priv(dev);
struct rtl8192_tx_ring *ring = &priv->tx_ring[prio];
Expand All @@ -620,15 +620,15 @@ static void rtl8192_irq_enable(struct net_device *dev)
write_nic_dword(priv, INTA_MASK, priv->irq_mask);
}

void rtl8192_irq_disable(struct net_device *dev)
static void rtl8192_irq_disable(struct net_device *dev)
{
struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);

write_nic_dword(priv, INTA_MASK, 0);
synchronize_irq(dev->irq);
}

void rtl8192_update_msr(struct net_device *dev)
static void rtl8192_update_msr(struct net_device *dev)
{
struct r8192_priv *priv = ieee80211_priv(dev);
u8 msr;
Expand Down Expand Up @@ -656,7 +656,7 @@ void rtl8192_update_msr(struct net_device *dev)
write_nic_byte(priv, MSR, msr);
}

void rtl8192_set_chan(struct net_device *dev,short ch)
static void rtl8192_set_chan(struct net_device *dev,short ch)
{
struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);

Expand All @@ -668,7 +668,7 @@ void rtl8192_set_chan(struct net_device *dev,short ch)
priv->rf_set_chan(dev, priv->chan);
}

void rtl8192_rx_enable(struct net_device *dev)
static void rtl8192_rx_enable(struct net_device *dev)
{
struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);

Expand All @@ -687,7 +687,7 @@ void rtl8192_rx_enable(struct net_device *dev)
* BEACON_QUEUE ===> 8
* */
static const u32 TX_DESC_BASE[] = {BKQDA, BEQDA, VIQDA, VOQDA, HCCAQDA, CQDA, MQDA, HQDA, BQDA};
void rtl8192_tx_enable(struct net_device *dev)
static void rtl8192_tx_enable(struct net_device *dev)
{
struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);
u32 i;
Expand Down Expand Up @@ -762,7 +762,7 @@ void PHY_SetRtl8192eRfOff(struct net_device* dev)

}

void rtl8192_halt_adapter(struct net_device *dev, bool reset)
static void rtl8192_halt_adapter(struct net_device *dev, bool reset)
{
struct r8192_priv *priv = ieee80211_priv(dev);
int i;
Expand Down Expand Up @@ -819,13 +819,6 @@ void rtl8192_halt_adapter(struct net_device *dev, bool reset)
skb_queue_purge(&priv->skb_queue);
}

static const u16 rtl_rate[] = {10,20,55,110,60,90,120,180,240,360,480,540};
inline u16 rtl8192_rate2rate(short rate)
{
if (rate >11) return 0;
return rtl_rate[rate];
}

static void rtl8192_data_hard_stop(struct net_device *dev)
{
}
Expand Down Expand Up @@ -1065,7 +1058,7 @@ static void rtl8192_net_update(struct net_device *dev)
}
}

void rtl819xE_tx_cmd(struct net_device *dev, struct sk_buff *skb)
static void rtl819xE_tx_cmd(struct net_device *dev, struct sk_buff *skb)
{
struct r8192_priv *priv = ieee80211_priv(dev);
struct rtl8192_tx_ring *ring;
Expand Down Expand Up @@ -1831,7 +1824,7 @@ static bool GetHalfNmodeSupportByAPs819xPci(struct net_device* dev)
return ieee->bHalfWirelessN24GMode;
}

short rtl8192_is_tx_queue_empty(struct net_device *dev)
static short rtl8192_is_tx_queue_empty(struct net_device *dev)
{
int i=0;
struct r8192_priv *priv = ieee80211_priv(dev);
Expand Down Expand Up @@ -1889,7 +1882,7 @@ static void rtl8192_hw_wakeup(struct net_device* dev)
MgntActSet_RF_State(dev, eRfOn, RF_CHANGE_BY_PS);
}

void rtl8192_hw_wakeup_wq (struct work_struct *work)
static void rtl8192_hw_wakeup_wq (struct work_struct *work)
{
struct delayed_work *dwork = container_of(work,struct delayed_work,work);
struct ieee80211_device *ieee = container_of(dwork,struct ieee80211_device,hw_wakeup_wq);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/rtl8192e/r8192E_wx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ static iw_handler r8192_private_handler[] = {
r8192_wx_adapter_power_status,
};

struct iw_statistics *r8192_get_wireless_stats(struct net_device *dev)
static struct iw_statistics *r8192_get_wireless_stats(struct net_device *dev)
{
struct r8192_priv *priv = ieee80211_priv(dev);
struct ieee80211_device* ieee = priv->ieee80211;
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/staging/rtl8192e/r8192E_wx.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,5 @@

#ifndef R8180_WX_H
#define R8180_WX_H
//#include <linux/wireless.h>
extern struct iw_handler_def r8192_wx_handlers_def;
/* Enable the rtl819x_core.c to share this function, david 2008.9.22 */
struct iw_statistics *r8192_get_wireless_stats(struct net_device *dev);
#endif

0 comments on commit 3ec8207

Please sign in to comment.