Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236525
b: refs/heads/master
c: 0914596
h: refs/heads/master
i:
  236523: 50279ad
v: v3
  • Loading branch information
Mike McCormack authored and Greg Kroah-Hartman committed Mar 14, 2011
1 parent 301c745 commit 9b5e2ca
Show file tree
Hide file tree
Showing 11 changed files with 63 additions and 61 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: 45a43a84cdabc1918b9e59c829587fe1be7cee92
refs/heads/master: 09145962d6fdcecc229e685bc2321bd29fdc94c9
14 changes: 7 additions & 7 deletions trunk/drivers/staging/rtl8192e/ieee80211/ieee80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -2124,7 +2124,7 @@ struct ieee80211_device {
* This fucntion can't sleep.
*/
int (*softmac_hard_start_xmit)(struct sk_buff *skb,
struct net_device *dev);
struct ieee80211_device *ieee80211);

/* used instead of hard_start_xmit (not softmac_hard_start_xmit)
* if the IEEE_SOFTMAC_TX_QUEUE feature is used to TX data
Expand All @@ -2133,22 +2133,22 @@ struct ieee80211_device {
* This function can't sleep.
*/
void (*softmac_data_hard_start_xmit)(struct sk_buff *skb,
struct net_device *dev,int rate);
struct ieee80211_device *ieee80211, int rate);

/* stops the HW queue for DATA frames. Useful to avoid
* waste time to TX data frame when we are reassociating
* This function can sleep.
*/
void (*data_hard_stop)(struct net_device *dev);
void (*data_hard_stop)(struct ieee80211_device *ieee80211);

/* OK this is complementar to data_poll_hard_stop */
void (*data_hard_resume)(struct net_device *dev);
void (*data_hard_resume)(struct ieee80211_device *ieee80211);

/* ask to the driver to retune the radio .
* This function can sleep. the driver should ensure
* the radio has been swithced before return.
*/
void (*set_chan)(struct net_device *dev,short ch);
void (*set_chan)(struct ieee80211_device *ieee80211, short ch);

/* These are not used if the ieee stack takes care of
* scanning (IEEE_SOFTMAC_SCAN feature set).
Expand Down Expand Up @@ -2182,8 +2182,8 @@ struct ieee80211_device {
* stop_send_bacons is NOT guaranteed to be called only
* after start_send_beacons.
*/
void (*start_send_beacons) (struct net_device *dev);
void (*stop_send_beacons) (struct net_device *dev);
void (*start_send_beacons) (struct ieee80211_device *dev);
void (*stop_send_beacons) (struct ieee80211_device *dev);

/* power save mode related */
void (*sta_wake_up) (struct net_device *dev);
Expand Down
38 changes: 19 additions & 19 deletions trunk/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ inline void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee
ieee->seq_ctrl[0]++;

/* avoid watchdog triggers */
ieee->softmac_data_hard_start_xmit(skb,ieee->dev,ieee->basic_rate);
ieee->softmac_data_hard_start_xmit(skb, ieee, ieee->basic_rate);
}

spin_unlock_irqrestore(&ieee->lock, flags);
Expand All @@ -268,7 +268,7 @@ inline void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee
* */
skb_queue_tail(&ieee->skb_waitQ[tcb_desc->queue_index], skb);
} else {
ieee->softmac_hard_start_xmit(skb,ieee->dev);
ieee->softmac_hard_start_xmit(skb, ieee);
}
spin_unlock(&ieee->mgmt_tx_lock);
}
Expand Down Expand Up @@ -297,7 +297,7 @@ inline void softmac_ps_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *i
ieee->seq_ctrl[0]++;

/* avoid watchdog triggers */
ieee->softmac_data_hard_start_xmit(skb,ieee->dev,ieee->basic_rate);
ieee->softmac_data_hard_start_xmit(skb, ieee, ieee->basic_rate);

}else{

Expand All @@ -308,7 +308,7 @@ inline void softmac_ps_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *i
else
ieee->seq_ctrl[0]++;

ieee->softmac_hard_start_xmit(skb,ieee->dev);
ieee->softmac_hard_start_xmit(skb, ieee);

}
}
Expand Down Expand Up @@ -448,7 +448,7 @@ void ieee80211_softmac_scan_syncro(struct ieee80211_device *ieee)

if (ieee->state == IEEE80211_LINKED)
goto out;
ieee->set_chan(ieee->dev, ch);
ieee->set_chan(ieee, ch);
#ifdef ENABLE_DOT11D
if(channel_map[ch] == 1)
#endif
Expand Down Expand Up @@ -517,7 +517,7 @@ void ieee80211_softmac_scan_wq(struct work_struct *work)
#endif
if (ieee->scanning == 0 )
goto out;
ieee->set_chan(ieee->dev, ieee->current_network.channel);
ieee->set_chan(ieee, ieee->current_network.channel);
#ifdef ENABLE_DOT11D
if(channel_map[ieee->current_network.channel] == 1)
#endif
Expand Down Expand Up @@ -568,7 +568,7 @@ void ieee80211_beacons_stop(struct ieee80211_device *ieee)
void ieee80211_stop_send_beacons(struct ieee80211_device *ieee)
{
if(ieee->stop_send_beacons)
ieee->stop_send_beacons(ieee->dev);
ieee->stop_send_beacons(ieee);
if (ieee->softmac_features & IEEE_SOFTMAC_BEACONS)
ieee80211_beacons_stop(ieee);
}
Expand All @@ -577,7 +577,7 @@ void ieee80211_stop_send_beacons(struct ieee80211_device *ieee)
void ieee80211_start_send_beacons(struct ieee80211_device *ieee)
{
if(ieee->start_send_beacons)
ieee->start_send_beacons(ieee->dev);
ieee->start_send_beacons(ieee);
if(ieee->softmac_features & IEEE_SOFTMAC_BEACONS)
ieee80211_beacons_start(ieee);
}
Expand Down Expand Up @@ -1390,7 +1390,7 @@ void ieee80211_associate_complete_wq(struct work_struct *work)
}

if (ieee->data_hard_resume)
ieee->data_hard_resume(ieee->dev);
ieee->data_hard_resume(ieee);
netif_carrier_on(ieee->dev);
}

Expand All @@ -1414,7 +1414,7 @@ void ieee80211_associate_procedure_wq(struct work_struct *work)
down(&ieee->wx_sem);

if (ieee->data_hard_stop)
ieee->data_hard_stop(ieee->dev);
ieee->data_hard_stop(ieee);

ieee80211_stop_scan(ieee);
printk("===>%s(), chan:%d\n", __FUNCTION__, ieee->current_network.channel);
Expand Down Expand Up @@ -2221,7 +2221,7 @@ void ieee80211_softmac_xmit(struct ieee80211_txb *txb, struct ieee80211_device *
}else{
ieee->softmac_data_hard_start_xmit(
txb->fragments[i],
ieee->dev,ieee->rate);
ieee, ieee->rate);
}
}

Expand All @@ -2244,7 +2244,7 @@ void ieee80211_resume_tx(struct ieee80211_device *ieee)

ieee->softmac_data_hard_start_xmit(
ieee->tx_pending.txb->fragments[i],
ieee->dev,ieee->rate);
ieee, ieee->rate);
ieee->stats.tx_packets++;
}
}
Expand Down Expand Up @@ -2294,7 +2294,7 @@ void ieee80211_rtl_wake_queue(struct ieee80211_device *ieee)
else
ieee->seq_ctrl[0]++;

ieee->softmac_data_hard_start_xmit(skb,ieee->dev,ieee->basic_rate);
ieee->softmac_data_hard_start_xmit(skb, ieee, ieee->basic_rate);
}
}
if (!ieee->queue_stop && ieee->tx_pending.txb)
Expand Down Expand Up @@ -2348,13 +2348,13 @@ void ieee80211_start_master_bss(struct ieee80211_device *ieee)

memcpy(ieee->current_network.bssid, ieee->dev->dev_addr, ETH_ALEN);

ieee->set_chan(ieee->dev, ieee->current_network.channel);
ieee->set_chan(ieee, ieee->current_network.channel);
ieee->state = IEEE80211_LINKED;
ieee->link_change(ieee->dev);
notify_wx_assoc_event(ieee);

if (ieee->data_hard_resume)
ieee->data_hard_resume(ieee->dev);
ieee->data_hard_resume(ieee);

netif_carrier_on(ieee->dev);
}
Expand All @@ -2364,7 +2364,7 @@ void ieee80211_start_monitor_mode(struct ieee80211_device *ieee)
if(ieee->raw_tx){

if (ieee->data_hard_resume)
ieee->data_hard_resume(ieee->dev);
ieee->data_hard_resume(ieee);

netif_carrier_on(ieee->dev);
}
Expand Down Expand Up @@ -2467,15 +2467,15 @@ void ieee80211_start_ibss_wq(struct work_struct *work)

ieee->state = IEEE80211_LINKED;

ieee->set_chan(ieee->dev, ieee->current_network.channel);
ieee->set_chan(ieee, ieee->current_network.channel);
ieee->link_change(ieee->dev);

notify_wx_assoc_event(ieee);

ieee80211_start_send_beacons(ieee);

if (ieee->data_hard_resume)
ieee->data_hard_resume(ieee->dev);
ieee->data_hard_resume(ieee);
netif_carrier_on(ieee->dev);

up(&ieee->wx_sem);
Expand Down Expand Up @@ -2540,7 +2540,7 @@ void ieee80211_disassociate(struct ieee80211_device *ieee)
ieee80211_reset_queue(ieee);

if (ieee->data_hard_stop)
ieee->data_hard_stop(ieee->dev);
ieee->data_hard_stop(ieee);
#ifdef ENABLE_DOT11D
if(IS_DOT11D_ENABLE(ieee))
Dot11d_Reset(ieee);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ void ieee80211_wx_sync_scan_wq(struct work_struct *work)
#endif

if (ieee->data_hard_stop)
ieee->data_hard_stop(ieee->dev);
ieee->data_hard_stop(ieee);

ieee80211_stop_send_beacons(ieee);

Expand Down Expand Up @@ -360,7 +360,7 @@ void ieee80211_wx_sync_scan_wq(struct work_struct *work)
ieee->LinkDetectInfo.NumRecvDataInPeriod= 1;
}
if (ieee->data_hard_resume)
ieee->data_hard_resume(ieee->dev);
ieee->data_hard_resume(ieee);

if(ieee->iw_mode == IW_MODE_ADHOC || ieee->iw_mode == IW_MODE_MASTER)
ieee80211_start_send_beacons(ieee);
Expand Down Expand Up @@ -479,7 +479,7 @@ int ieee80211_wx_set_essid(struct ieee80211_device *ieee,
{
if(prev == 0 && ieee->raw_tx){
if (ieee->data_hard_resume)
ieee->data_hard_resume(ieee->dev);
ieee->data_hard_resume(ieee);

netif_carrier_on(ieee->dev);
}
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/staging/rtl8192e/ieee80211/rtl819x_HTProc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1716,15 +1716,15 @@ void HTSetConnectBwModeCallback(struct ieee80211_device* ieee)
if(pHTInfo->bCurBW40MHz)
{
if(pHTInfo->CurSTAExtChnlOffset==HT_EXTCHNL_OFFSET_UPPER)
ieee->set_chan(ieee->dev, ieee->current_network.channel+2);
ieee->set_chan(ieee, ieee->current_network.channel+2);
else if(pHTInfo->CurSTAExtChnlOffset==HT_EXTCHNL_OFFSET_LOWER)
ieee->set_chan(ieee->dev, ieee->current_network.channel-2);
ieee->set_chan(ieee, ieee->current_network.channel-2);
else
ieee->set_chan(ieee->dev, ieee->current_network.channel);
ieee->set_chan(ieee, ieee->current_network.channel);

ieee->SetBWModeHandler(ieee->dev, HT_CHANNEL_WIDTH_20_40, pHTInfo->CurSTAExtChnlOffset);
} else {
ieee->set_chan(ieee->dev, ieee->current_network.channel);
ieee->set_chan(ieee, ieee->current_network.channel);
ieee->SetBWModeHandler(ieee->dev, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT);
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/rtl8192e/r8192E.h
Original file line number Diff line number Diff line change
Expand Up @@ -916,8 +916,8 @@ typedef struct r8192_priv
struct semaphore rf_sem; //used to lock rf write operation added by wb, modified by david
u8 rf_type; /* 0 means 1T2R, 1 means 2T4R */

short (*rf_set_sens)(struct net_device *dev,short sens);
u8 (*rf_set_chan)(struct net_device *dev,u8 ch);
short (*rf_set_sens)(struct net_device *dev, short sens);
u8 (*rf_set_chan)(struct ieee80211_device *ieee80211, u8 ch);
short promisc;
/* stats */
struct Stats stats;
Expand Down
Loading

0 comments on commit 9b5e2ca

Please sign in to comment.