Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219959
b: refs/heads/master
c: 61d0e67
h: refs/heads/master
i:
  219957: a722fb9
  219955: 207b1f6
  219951: 19c6679
v: v3
  • Loading branch information
Mike McCormack authored and Greg Kroah-Hartman committed Sep 21, 2010
1 parent b7f948d commit b31c4c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 29 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: a6b1d95908dbbc679846e6d362298e60445f5b7e
refs/heads/master: 61d0e67af6a54ae4868449e6865d523c4f3d1e3c
33 changes: 5 additions & 28 deletions trunk/drivers/staging/rtl8192e/r8192E_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
*/


#undef LOOP_TEST
#undef RX_DONT_PASS_UL
#undef DEBUG_EPROM
#undef DEBUG_RX_VERBOSE
Expand Down Expand Up @@ -839,36 +838,14 @@ void rtl8192_update_msr(struct net_device *dev)

void rtl8192_set_chan(struct net_device *dev,short ch)
{
struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);
RT_TRACE(COMP_RF, "=====>%s()====ch:%d\n", __FUNCTION__, ch);
priv->chan=ch;
#if 0
if(priv->ieee80211->iw_mode == IW_MODE_ADHOC ||
priv->ieee80211->iw_mode == IW_MODE_MASTER){

priv->ieee80211->link_state = WLAN_LINK_ASSOCIATED;
priv->ieee80211->master_chan = ch;
rtl8192_update_beacon_ch(dev);
}
#endif

/* this hack should avoid frame TX during channel setting*/


// tx = read_nic_dword(dev,TX_CONF);
// tx &= ~TX_LOOPBACK_MASK;
struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);

#ifndef LOOP_TEST
//TODO
// write_nic_dword(dev,TX_CONF, tx |( TX_LOOPBACK_MAC<<TX_LOOPBACK_SHIFT));
priv->chan = ch;

//need to implement rf set channel here WB
/* need to implement rf set channel here WB */

if (priv->rf_set_chan)
priv->rf_set_chan(dev,priv->chan);
// mdelay(10);
// write_nic_dword(dev,TX_CONF,tx | (TX_LOOPBACK_NONE<<TX_LOOPBACK_SHIFT));
#endif
if (priv->rf_set_chan)
priv->rf_set_chan(dev, priv->chan);
}

void rtl8192_rx_enable(struct net_device *dev)
Expand Down

0 comments on commit b31c4c3

Please sign in to comment.