wlcore: consider single fw case
authorEliad Peller <eliad@wizery.com>
Wed, 25 Jul 2012 11:22:21 +0000 (14:22 +0300)
committerLuciano Coelho <luca@coelho.fi>
Thu, 27 Sep 2012 09:13:50 +0000 (12:13 +0300)
commit9b1a0a7771a62c3af4dce83e7cfd199367bd84ff
tree52ac2c43125b6bba0e5af7d002bd76fe2f0e8615
parente1c497c3e4b79feea3d587c8ca76fb437c1b2495
wlcore: consider single fw case

When a single fw is being used for both single-role
and multi-role cases (e.g. 18xx), wl->mr_fw_name is
NULL, which results in NULL dereference while trying
to load the multi-role fw.

In this case, always use the single-role fw, and avoid
redundant fw switch by checking for this case in
wl12xx_need_fw_change() as well.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <luca@coelho.fi>
drivers/net/wireless/ti/wlcore/main.c