Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125126
b: refs/heads/master
c: 5b37717
h: refs/heads/master
v: v3
  • Loading branch information
Stefano Panella authored and David Vrabel committed Dec 12, 2008
1 parent 787b71f commit 20b97a2
Show file tree
Hide file tree
Showing 13 changed files with 1,604 additions and 328 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: c35fa3ea1ae8198bd65c2c6e59d9ebd68c115a59
refs/heads/master: 5b37717a23b8e40f6cf7ad85a26ddcf41c171e2c
13 changes: 7 additions & 6 deletions trunk/drivers/usb/wusbcore/reservation.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@ static void wusbhc_rsv_complete_cb(struct uwb_rsv *rsv)
{
struct wusbhc *wusbhc = rsv->pal_priv;
struct device *dev = wusbhc->dev;
struct uwb_mas_bm mas;
char buf[72];

switch (rsv->state) {
case UWB_RSV_STATE_O_ESTABLISHED:
bitmap_scnprintf(buf, sizeof(buf), rsv->mas.bm, UWB_NUM_MAS);
uwb_rsv_get_usable_mas(rsv, &mas);
bitmap_scnprintf(buf, sizeof(buf), mas.bm, UWB_NUM_MAS);
dev_dbg(dev, "established reservation: %s\n", buf);
wusbhc_bwa_set(wusbhc, rsv->stream, &rsv->mas);
wusbhc_bwa_set(wusbhc, rsv->stream, &mas);
break;
case UWB_RSV_STATE_NONE:
dev_dbg(dev, "removed reservation\n");
Expand Down Expand Up @@ -85,13 +87,12 @@ int wusbhc_rsv_establish(struct wusbhc *wusbhc)
bcid.data[0] = wusbhc->cluster_id;
bcid.data[1] = 0;

rsv->owner = &rc->uwb_dev;
rsv->target.type = UWB_RSV_TARGET_DEVADDR;
rsv->target.devaddr = bcid;
rsv->type = UWB_DRP_TYPE_PRIVATE;
rsv->max_mas = 256;
rsv->min_mas = 16; /* one MAS per zone? */
rsv->sparsity = 16; /* at least one MAS in each zone? */
rsv->max_mas = 256; /* try to get as much as possible */
rsv->min_mas = 15; /* one MAS per zone */
rsv->max_interval = 1; /* max latency is one zone */
rsv->is_multicast = true;

ret = uwb_rsv_establish(rsv);
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/uwb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ obj-$(CONFIG_UWB_I1480U) += i1480/

uwb-objs := \
address.o \
allocator.o \
beacon.o \
driver.o \
drp.o \
Expand Down
Loading

0 comments on commit 20b97a2

Please sign in to comment.