Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125105
b: refs/heads/master
c: 1cde7f6
h: refs/heads/master
i:
  125103: b8d21f4
v: v3
  • Loading branch information
David Vrabel committed Oct 28, 2008
1 parent 6fc3480 commit 997153f
Show file tree
Hide file tree
Showing 7 changed files with 173 additions and 379 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: 4d2bea4ca0adb4cebfbf89d34869c74081c42577
refs/heads/master: 1cde7f68ced8d10a20dd2370e9d1d22ab3c1ea5c
24 changes: 12 additions & 12 deletions trunk/drivers/uwb/beacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,22 +349,22 @@ ssize_t uwb_bce_print_IEs(struct uwb_dev *uwb_dev, struct uwb_beca_e *bce,
ssize_t result = 0;
struct uwb_rc_evt_beacon *be;
struct uwb_beacon_frame *bf;
struct uwb_buf_ctx ctx = {
.buf = buf,
.bytes = 0,
.size = size
};
int ies_len;
struct uwb_ie_hdr *ies;

mutex_lock(&bce->mutex);

be = bce->be;
if (be == NULL)
goto out;
bf = (void *) be->BeaconInfo;
uwb_ie_for_each(uwb_dev, uwb_ie_dump_hex, &ctx,
bf->IEData, be->wBeaconInfoLength - sizeof(*bf));
result = ctx.bytes;
out:
if (be) {
bf = (struct uwb_beacon_frame *)bce->be->BeaconInfo;
ies_len = be->wBeaconInfoLength - sizeof(struct uwb_beacon_frame);
ies = (struct uwb_ie_hdr *)bf->IEData;

result = uwb_ie_dump_hex(ies, ies_len, buf, size);
}

mutex_unlock(&bce->mutex);

return result;
}

Expand Down
Loading

0 comments on commit 997153f

Please sign in to comment.