Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126580
b: refs/heads/master
c: c930e0c
h: refs/heads/master
v: v3
  • Loading branch information
Pekka Enberg authored and Greg Kroah-Hartman committed Jan 6, 2009
1 parent 88711da commit c3f619a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 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: 82f8c2cd469211e6ae7e0a3c51eb93ab78f2427c
refs/heads/master: c930e0c008a1b81429e5dec089970b50f97ef593
2 changes: 2 additions & 0 deletions trunk/drivers/staging/winbond/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ struct wbsoft_priv {
struct iw_statistics iw_stats;

u8 LinkName[WB_MAX_LINK_NAME_LEN];

bool enabled;
};

#endif /* __WINBOND_CORE_H */
11 changes: 6 additions & 5 deletions trunk/drivers/staging/winbond/wbusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ static struct ieee80211_supported_band wbsoft_band_2GHz = {
.n_bitrates = ARRAY_SIZE(wbsoft_rates),
};

int wbsoft_enabled;

static int wbsoft_add_interface(struct ieee80211_hw *dev,
struct ieee80211_if_init_conf *conf)
{
Expand Down Expand Up @@ -129,8 +127,10 @@ static int wbsoft_tx(struct ieee80211_hw *dev, struct sk_buff *skb)

static int wbsoft_start(struct ieee80211_hw *dev)
{
wbsoft_enabled = 1;
printk("wbsoft_start called\n");
struct wbsoft_priv *priv = dev->priv;

priv->enabled = true;

return 0;
}

Expand Down Expand Up @@ -393,10 +393,11 @@ static int wb35_probe(struct usb_interface *intf, const struct usb_device_id *id

void packet_came(struct ieee80211_hw *hw, char *pRxBufferAddress, int PacketSize)
{
struct wbsoft_priv *priv = hw->priv;
struct sk_buff *skb;
struct ieee80211_rx_status rx_status = {0};

if (!wbsoft_enabled)
if (!priv->enabled)
return;

skb = dev_alloc_skb(PacketSize);
Expand Down

0 comments on commit c3f619a

Please sign in to comment.