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)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 26 Jan 2017 17:03:09 +0000 (18:03 +0100)
commit228c8c6b1f4376788e9d5ab00d50b10228eb40d3
treedfd7010fa9480284fe72bb2c4ab50a5225792a10
parent731977e97b3697454a862fec656c2561eabc0b87
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>
include/linux/ieee80211.h