]> git.karo-electronics.de Git - linux-beck.git/commit
wlcore: clarify and fix regulatory domain bit translation
authorEliad Peller <eliad@wizery.com>
Tue, 17 Sep 2013 15:41:27 +0000 (18:41 +0300)
committerLuciano Coelho <luciano.coelho@intel.com>
Mon, 30 Sep 2013 18:12:21 +0000 (21:12 +0300)
commit49540d1b8155b5ded98e6b77c5c92b11854c3de7
treed8256744f10078c6ae9714130584c2aafacf23e8
parent7ca38a98ca4b1c5e0d243a712d9eb84afdfe2747
wlcore: clarify and fix regulatory domain bit translation

Channels 52-64 were mapped incorrectly.

Refactor and document wlcore_get_reg_conf_ch_idx() in
order to make it clear what's going on there.

While on it, fix the return value check to consider
0 as a valid return value as well (indicates channel 1).

Reported-by: Yaniv Machani <yanivma@ti.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Ido Reis <idor@ti.com>
Signed-off-by: Victor Goldenshtein <victorg@ti.com>
Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
drivers/net/wireless/ti/wlcore/cmd.c