Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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/20211124150934.3670248-1-stefan@datenfreihafen.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+4 -3
+4 -3
include/net/nl802154.h
··· 19 19 * 20 20 */ 21 21 22 + #include <linux/types.h> 23 + 22 24 #define NL802154_GENL_NAME "nl802154" 23 25 24 26 enum nl802154_commands { ··· 152 150 }; 153 151 154 152 enum nl802154_iftype { 155 - /* for backwards compatibility TODO */ 156 - NL802154_IFTYPE_UNSPEC = -1, 153 + NL802154_IFTYPE_UNSPEC = (~(__u32)0), 157 154 158 - NL802154_IFTYPE_NODE, 155 + NL802154_IFTYPE_NODE = 0, 159 156 NL802154_IFTYPE_MONITOR, 160 157 NL802154_IFTYPE_COORD, 161 158