From: Eliad Peller Date: Tue, 17 Sep 2013 15:41:27 +0000 (+0300) Subject: wlcore: clarify and fix regulatory domain bit translation X-Git-Tag: v3.13-rc1~105^2~225^2~26^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49540d1b8155b5ded98e6b77c5c92b11854c3de7;p=pandora-kernel.git 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 Signed-off-by: Eliad Peller Signed-off-by: Ido Reis Signed-off-by: Victor Goldenshtein Signed-off-by: Luciano Coelho --- Reading git-diff-tree failed