Skip to content

Commit

Permalink
Merge tag 'ieee802154-for-net-2021-11-24' of git://git.kernel.org/pub…
Browse files Browse the repository at this point in the history
…/scm/linux/kernel/git/sschmidt/wpan

Stefan Schmidt says:

====================
pull-request: ieee802154 for net 2021-11-24

A fix from Alexander which has been brought up various times found by
automated checkers. Make sure values are in u32 range.

* tag 'ieee802154-for-net-2021-11-24' of git://git.kernel.org/pub/scm/linux/kernel/git/sschmidt/wpan:
  net: ieee802154: handle iftypes as u32
====================

Link: https://lore.kernel.org/r/20211124150934.3670248-1-stefan@datenfreihafen.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Jakub Kicinski committed Nov 25, 2021
2 parents ac13285 + 451dc48 commit 48a78f5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/net/nl802154.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
*
*/

#include <linux/types.h>

#define NL802154_GENL_NAME "nl802154"

enum nl802154_commands {
Expand Down Expand Up @@ -150,10 +152,9 @@ enum nl802154_attrs {
};

enum nl802154_iftype {
/* for backwards compatibility TODO */
NL802154_IFTYPE_UNSPEC = -1,
NL802154_IFTYPE_UNSPEC = (~(__u32)0),

NL802154_IFTYPE_NODE,
NL802154_IFTYPE_NODE = 0,
NL802154_IFTYPE_MONITOR,
NL802154_IFTYPE_COORD,

Expand Down

0 comments on commit 48a78f5

Please sign in to comment.