Skip to content

Commit 48a78f5

Browse files
committed
Merge tag 'ieee802154-for-net-2021-11-24' of git://git.kernel.org/pub/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/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents ac13285 + 451dc48 commit 48a78f5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/net/nl802154.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
*
2020
*/
2121

22+
#include <linux/types.h>
23+
2224
#define NL802154_GENL_NAME "nl802154"
2325

2426
enum nl802154_commands {
@@ -150,10 +152,9 @@ enum nl802154_attrs {
150152
};
151153

152154
enum nl802154_iftype {
153-
/* for backwards compatibility TODO */
154-
NL802154_IFTYPE_UNSPEC = -1,
155+
NL802154_IFTYPE_UNSPEC = (~(__u32)0),
155156

156-
NL802154_IFTYPE_NODE,
157+
NL802154_IFTYPE_NODE = 0,
157158
NL802154_IFTYPE_MONITOR,
158159
NL802154_IFTYPE_COORD,
159160

0 commit comments

Comments
 (0)