]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: nvm-parse: unify channel flags printing
authorJohannes Berg <johannes.berg@intel.com>
Thu, 21 Sep 2017 09:03:50 +0000 (11:03 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 6 Oct 2017 10:59:44 +0000 (13:59 +0300)
commit9a3b39fabda064906b066c0d3c9b0cebf73a5c46
tree2e03e9966db2d14d6c49efa98bf86db98f02b947
parent419c2d3d1a07b99c6b3afe50616bd2c877754544
iwlwifi: nvm-parse: unify channel flags printing

The current channel flags printing is very strange and messy,
in LAR we sometimes print the channel number and sometimes the
frequency, in both we print a calculated value (whether ad-hoc
is supported or not) etc.

Unify all this to
 * print the channel number, not the frequency
 * remove the band print (2.4/5.2 GHz, it's obvious)
 * remove the calculated Ad-Hoc print

Doing all of this also gets the length of the string to a max
of 101 characters, which is below the max of 110 for tracing,
and thus avoids the warning that came up on certain channels
with certain flag combinations.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c