Skip to content

Commit de9315f

Browse files
author
Inaky Perez-Gonzalez
committed
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>
1 parent 9835fd8 commit de9315f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎net/wimax/op-msg.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,8 @@ int wimax_gnl_doit_msg_from_user(struct sk_buff *skb, struct genl_info *info)
388388
}
389389
mutex_lock(&wimax_dev->mutex);
390390
result = wimax_dev_is_ready(wimax_dev);
391+
if (result == -ENOMEDIUM)
392+
result = 0;
391393
if (result < 0)
392394
goto error_not_ready;
393395
result = -ENOSYS;

0 commit comments

Comments
 (0)