Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369115
b: refs/heads/master
c: 5ce6900
h: refs/heads/master
i:
  369113: 4811c76
  369111: 461e488
v: v3
  • Loading branch information
Gabor Juhos authored and John W. Linville committed Apr 1, 2013
1 parent 2d020b2 commit fbd3347
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 71d6c1bb34d65f304495786853cb51101328d9a2
refs/heads/master: 5ce69003dc92cd4a685a9f22a586b56a25f19624
17 changes: 17 additions & 0 deletions trunk/drivers/net/wireless/rt2x00/rt2x00.h
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,23 @@ static inline void rt2x00_set_chip(struct rt2x00_dev *rt2x00dev,
rt2x00dev->chip.rt, rt2x00dev->chip.rf, rt2x00dev->chip.rev);
}

static inline void rt2x00_set_rt(struct rt2x00_dev *rt2x00dev,
const u16 rt, const u16 rev)
{
rt2x00dev->chip.rt = rt;
rt2x00dev->chip.rev = rev;

INFO(rt2x00dev, "RT chipset %04x, rev %04x detected\n",
rt2x00dev->chip.rt, rt2x00dev->chip.rev);
}

static inline void rt2x00_set_rf(struct rt2x00_dev *rt2x00dev, const u16 rf)
{
rt2x00dev->chip.rf = rf;

INFO(rt2x00dev, "RF chipset %04x detected\n", rt2x00dev->chip.rf);
}

static inline bool rt2x00_rt(struct rt2x00_dev *rt2x00dev, const u16 rt)
{
return (rt2x00dev->chip.rt == rt);
Expand Down

0 comments on commit fbd3347

Please sign in to comment.