summaryrefslogtreecommitdiff
path: root/iwinfo_nl80211.c
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-01-20 16:53:38 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2023-01-20 17:26:54 +0100
commit7e3d7ded29d7b41e4b1ddc7aca965a5d39c52baf (patch)
tree7bf8bcc330e43eaa59699e765bb2a9b623c55f1b /iwinfo_nl80211.c
parent9b47b031c027f4800b5afca8762fbdcef8d3df27 (diff)
downloadiwinfo-7e3d7ded29d7b41e4b1ddc7aca965a5d39c52baf.tar.gz
iwinfo: reorganize iwinfo header to enum and defines
iwinfo.h have a mixed way to declare defines, some use enum, some define bits in enum and other have their own special way. In all of this case the count of all this defines is hardcoded to an arbitrary number. To make code less error prone, convert everything to a common pattern and use enum way to calculate the count of each flags. Also drop defining number for each flag and just declare that the enum starts from 0. Move the related char array just below the define declaration to improve code readability. No functionl change intended. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'iwinfo_nl80211.c')
0 files changed, 0 insertions, 0 deletions