qca-swiss-army-knife: add 'ath9k_get_p_columns' helper
qca-swiss-army-knife: add 'ath9k_get_p_columns' helper

The number of the columns to be printed is computed in
two different function. Add a helper function for that
and remove the duplicated code.

Signed-off-by: Gabor Juhos <0b85b0feb94c9a44e8676965f48a70291ba74edb@openwrt.org>
Signed-off-by: Luis R. Rodriguez <d4fa18192c5a479e564d29c2300c2e15afd1d8d7@qca.qualcomm.com>

mcgrof/qca-swiss-army-knife,qca/qca-swiss-army-knife,qca/qca-swiss-army-knife,qca/qca-swiss-army-knife,qca/qca-swiss-army-knife