wireless: define cipher/AKM suites using a macro
authorJohannes Berg <johannes.berg@intel.com>
Thu, 26 Jan 2017 16:15:44 +0000 (17:15 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 5 Nov 2017 17:09:43 +0000 (18:09 +0100)
commit2f4828855cc1a8cf5ce6cbb0f273eb9ee63db085
tree51e3b55bd76de63834cc9cfbf5f0f2f64236c47f
parent9869147bf29b14700f1f2f32e3c4d774d60b8109
wireless: define cipher/AKM suites using a macro

The spec writes cipher/AKM suites as something like 00-0F-AC:9,
but the part after the colon isn't hex, it's decimal, so that
we've already had a few mistakes (in other code, or unmerged
patches) to e.g. write 0x000FAC10 instead of 0x000FAC0A.

Use a macro to avoid that problem.

Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
include/linux/ieee80211.h