mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
wimax: allow user space to send messages once the device is registered
It makes sense that the messaging pipe to the device can be used before the device is fully ready, as long as it is registered with the stack. Some debugging tools need it. Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
This commit is contained in:
parent
9835fd8499
commit
de9315fa3a
1 changed files with 2 additions and 0 deletions
|
@ -388,6 +388,8 @@ int wimax_gnl_doit_msg_from_user(struct sk_buff *skb, struct genl_info *info)
|
|||
}
|
||||
mutex_lock(&wimax_dev->mutex);
|
||||
result = wimax_dev_is_ready(wimax_dev);
|
||||
if (result == -ENOMEDIUM)
|
||||
result = 0;
|
||||
if (result < 0)
|
||||
goto error_not_ready;
|
||||
result = -ENOSYS;
|
||||
|
|
Loading…
Reference in a new issue