Add a comment describing link_set_flags() return values.
This commit is contained in:
parent
1c2a39c544
commit
fa1c5d3a0c
@ -348,6 +348,11 @@ fail:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Return 0 if flags were successfully changed.
|
||||||
|
// Return 1 if flags were already set.
|
||||||
|
// Return -1 on error.
|
||||||
|
// Return -2 if NL response had no status notification.
|
||||||
|
// Return -3 if RFKILL is set and flags cannot be changed.
|
||||||
static int link_set_flags(int fd, uint32_t flags)
|
static int link_set_flags(int fd, uint32_t flags)
|
||||||
{
|
{
|
||||||
uint32_t oldflags;
|
uint32_t oldflags;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user