Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 49009
b: refs/heads/master
c: fa8e29c
h: refs/heads/master
i:
  49007: bec77fa
v: v3
  • Loading branch information
Ulrich Kunitz authored and John W. Linville committed Feb 7, 2007
1 parent 7cce4f8 commit f3311c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 6e3632f66110b144183d53d550a51cbbbabc178f
refs/heads/master: fa8e29cff748efc7118c66b51f1241a927d86b98
5 changes: 2 additions & 3 deletions trunk/drivers/net/wireless/zd1211rw/zd_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,18 +156,17 @@ void zd_mac_clear(struct zd_mac *mac)
static int reset_mode(struct zd_mac *mac)
{
struct ieee80211_device *ieee = zd_mac_to_ieee80211(mac);
struct zd_ioreq32 ioreqs[3] = {
struct zd_ioreq32 ioreqs[] = {
{ CR_RX_FILTER, STA_RX_FILTER },
{ CR_SNIFFER_ON, 0U },
};

if (ieee->iw_mode == IW_MODE_MONITOR) {
ioreqs[0].value = 0xffffffff;
ioreqs[1].value = 0x1;
ioreqs[2].value = ENC_SNIFFER;
}

return zd_iowrite32a(&mac->chip, ioreqs, 3);
return zd_iowrite32a(&mac->chip, ioreqs, ARRAY_SIZE(ioreqs));
}

int zd_mac_open(struct net_device *netdev)
Expand Down

0 comments on commit f3311c3

Please sign in to comment.