Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354095
b: refs/heads/master
c: 52070c7
h: refs/heads/master
i:
  354093: b7ab31c
  354091: c420405
  354087: 547e5ee
  354079: 5966add
v: v3
  • Loading branch information
Sebastian Wankerl authored and Greg Kroah-Hartman committed Jan 20, 2013
1 parent 65f9c00 commit 11f577b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 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: 4156a7603709b2232603b10f1835f351d89b263e
refs/heads/master: 52070c709dbc493da550086709934e6028457a7c
25 changes: 15 additions & 10 deletions trunk/drivers/staging/wlan-ng/prism2mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,11 +415,14 @@ int prism2mgmt_scan_results(wlandevice_t *wlandev, void *msgp)
break;

#define REQBASICRATE(N) \
if ((count >= N) && DOT11_RATE5_ISBASIC_GET(item->supprates[(N)-1])) { \
req->basicrate ## N .data = item->supprates[(N)-1]; \
req->basicrate ## N .status = \
P80211ENUM_msgitem_status_data_ok; \
}
do { \
if ((count >= N) && DOT11_RATE5_ISBASIC_GET( \
item->supprates[(N)-1])) { \
req->basicrate ## N .data = item->supprates[(N)-1]; \
req->basicrate ## N .status = \
P80211ENUM_msgitem_status_data_ok; \
} \
} while (0)

REQBASICRATE(1);
REQBASICRATE(2);
Expand All @@ -431,11 +434,13 @@ int prism2mgmt_scan_results(wlandevice_t *wlandev, void *msgp)
REQBASICRATE(8);

#define REQSUPPRATE(N) \
if (count >= N) { \
req->supprate ## N .data = item->supprates[(N)-1]; \
req->supprate ## N .status = \
P80211ENUM_msgitem_status_data_ok; \
}
do { \
if (count >= N) { \
req->supprate ## N .data = item->supprates[(N)-1]; \
req->supprate ## N .status = \
P80211ENUM_msgitem_status_data_ok; \
} \
} while (0)

REQSUPPRATE(1);
REQSUPPRATE(2);
Expand Down

0 comments on commit 11f577b

Please sign in to comment.