Reorganized wl12xx code.

Signed-off-by: David Rodero <david@codiguiel.net>