wl12xx: fix mem leak in the channel switch command

Channel switch command wasn't freed in certain sanity check,
fix this by moving the check before the command allocation.

Signed-off-by: Victor Goldenshtein <victorg@ti.com>