Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162546
b: refs/heads/master
c: 3ef5a26
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Sep 15, 2009
1 parent 3dca343 commit fb79175
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 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: 54fb0579b9a35101b01d7b277a933e6af200ae88
refs/heads/master: 3ef5a262ad0061d6147da7e3ee03aead7c160d91
16 changes: 3 additions & 13 deletions trunk/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac_wx.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,22 +530,12 @@ int ieee80211_wx_get_name(struct ieee80211_device *ieee,
union iwreq_data *wrqu, char *extra)
{
strcpy(wrqu->name, "802.11");
if(ieee->modulation & IEEE80211_CCK_MODULATION){
if(ieee->modulation & IEEE80211_CCK_MODULATION)
strcat(wrqu->name, "b");
if(ieee->modulation & IEEE80211_OFDM_MODULATION)
strcat(wrqu->name, "/g");
}else if(ieee->modulation & IEEE80211_OFDM_MODULATION)
if(ieee->modulation & IEEE80211_OFDM_MODULATION)
strcat(wrqu->name, "g");
if (ieee->mode & (IEEE_N_24G | IEEE_N_5G))
strcat(wrqu->name, "/n");

if((ieee->state == IEEE80211_LINKED) ||
(ieee->state == IEEE80211_LINKED_SCANNING))
strcat(wrqu->name," linked");
else if(ieee->state != IEEE80211_NOLINK)
strcat(wrqu->name," link..");


strcat(wrqu->name, "n");
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/rtl8192e/ieee80211/ieee80211_wx.c
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ int ieee80211_wx_get_encode_ext(struct ieee80211_device *ieee,
} else
idx = ieee->tx_keyidx;

if (!ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY &&
if (!(ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY) &&
ext->alg != IW_ENCODE_ALG_WEP)
if (idx != 0 || ieee->iw_mode != IW_MODE_INFRA)
return -EINVAL;
Expand Down
9 changes: 7 additions & 2 deletions trunk/drivers/staging/rtl8192e/r8192_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ int rtl8192E_suspend (struct pci_dev *pdev, pm_message_t state)
if (!netif_running(dev))
goto out_pci_suspend;

dev->stop(dev);
if (dev->netdev_ops->ndo_stop)
dev->netdev_ops->ndo_stop(dev);
// dev->stop(dev);
#if 0

netif_carrier_off(dev);
Expand Down Expand Up @@ -150,7 +152,10 @@ int rtl8192E_resume (struct pci_dev *pdev)

netif_device_attach(dev);

dev->open(dev);
if (dev->netdev_ops->ndo_open)
dev->netdev_ops->ndo_open(dev);

// dev->open(dev);
out:
RT_TRACE(COMP_POWER, "<================r8192E resume call.\n");
return 0;
Expand Down

0 comments on commit fb79175

Please sign in to comment.