vt6655: Fix late setting of byRFType.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 7 Mar 2015 17:04:55 +0000 (17:04 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Mar 2015 10:33:13 +0000 (11:33 +0100)
commit1f51d5801859e0b382dcc8f06875811d63ec8953
tree5e47525d35793f91464dd7a9f4b5a93fb6c9f8eb
parent40c8790bcb7ac74f3038153cd09310e220c6a1df
vt6655: Fix late setting of byRFType.

byRFType is not set prior to registration of mac80211 causing
unpredictable operation after channel scans.

With byRFType unset all channels are enabled this causes tx power
to be set to values not present its eeprom.

Move setting of this variable to vt6655_probe.

byRFType must have a mask set. byRevId not used by driver and
is removed.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Cc: <stable@vger.kernel.org> # v3.19+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c