uwb: order IEs by element ID
authorDavid Vrabel <david.vrabel@csr.com>
Mon, 27 Oct 2008 16:48:09 +0000 (16:48 +0000)
committerDavid Vrabel <david.vrabel@csr.com>
Tue, 28 Oct 2008 12:09:17 +0000 (12:09 +0000)
commit1cde7f68ced8d10a20dd2370e9d1d22ab3c1ea5c
tree2fb65bbb93eae73e02fa1e9608212536259f8802
parent4d2bea4ca0adb4cebfbf89d34869c74081c42577
uwb: order IEs by element ID

ECMA-368 requires that IEs in a beacon must be sorted by element ID.  Most
hardware uses the ordering in the Set IE URC command so get the ordering
right on the host.

Also refactor the IE management code:
  - use uwb_ie_next() instead of uwb_ie_for_each().
  - remove unnecessary functions.
  - API is now only uwb_rc_ie_add() and uwb_rc_ie_rm().

Signed-off-by: David Vrabel <david.vrabel@csr.com>
drivers/uwb/beacon.c
drivers/uwb/ie.c
drivers/uwb/lc-rc.c
drivers/uwb/uwb-internal.h
drivers/uwb/wlp/wlp-internal.h
include/linux/uwb.h