diff options
author | Inaky Perez-Gonzalez <inaky@linux.intel.com> | 2009-04-20 17:11:28 -0700 |
---|---|---|
committer | Inaky Perez-Gonzalez <inaky@linux.intel.com> | 2009-04-21 15:01:25 -0700 |
commit | fdf913c4e26d8b25861f95152e3308c38cbbda7a (patch) | |
tree | 8b8c3f11b800d029ef9b902526684dae19a4bad7 /src | |
parent | 822eb164a15ae746c5a8c514f581fb47200fe463 (diff) |
libwimaxll: introduce 'any' handles to receive callbacks from any device
An 'any' handle is a handle opened with NULL as device name. No
commands can be executed with it, but it will emit callbacks for any
WiMAX device that would otherwise generate them for a handle opened
for it exclusively.
When the callback is executed, the handle is temporarily modified to
contain the interface index for whom the callback is emitted, which
can be recovered with wimaxll_ifidx().
The code modifications are quite minimal, mainly dealing with not
allowing command execution and updating the handle's interface index
before executing a callback.
This code also adds a path in wimaxll_open() to allow opening an
interface by interface index, by specifying "#NUMBER" (where NUMBER is
the interface index).
Errors to in some calls to libnl are better reported now.
Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions