Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341971
b: refs/heads/master
c: d9d8b01
h: refs/heads/master
i:
  341969: 2d2f9dd
  341967: c729527
v: v3
  • Loading branch information
Johannes Berg committed Nov 28, 2012
1 parent 5808205 commit e078789
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: 339afbf4819e5c7c0a0422af43b8c2eccd059abf
refs/heads/master: d9d8b01978f6510a262ddc4da3b3694d5b149cfe
5 changes: 2 additions & 3 deletions trunk/net/wireless/nl80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -6555,14 +6555,13 @@ nl80211_attr_cqm_policy[NL80211_ATTR_CQM_MAX + 1] __read_mostly = {
};

static int nl80211_set_cqm_txe(struct genl_info *info,
u32 rate, u32 pkts, u32 intvl)
u32 rate, u32 pkts, u32 intvl)
{
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct wireless_dev *wdev;
struct net_device *dev = info->user_ptr[1];

if ((rate < 0 || rate > 100) ||
(intvl < 0 || intvl > NL80211_CQM_TXE_MAX_INTVL))
if (rate > 100 || intvl > NL80211_CQM_TXE_MAX_INTVL)
return -EINVAL;

wdev = dev->ieee80211_ptr;
Expand Down

0 comments on commit e078789

Please sign in to comment.