]> git.baikalelectronics.ru Git - kernel.git/commit
wl12xx: fix checking of started dev role
authorEliad Peller <eliad@wizery.com>
Sun, 18 Dec 2011 18:25:43 +0000 (20:25 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 20 Dec 2011 20:30:15 +0000 (22:30 +0200)
commit378dd2241d01e2206570885b82966fe657a691a5
tree79b8ce1e09f26b9d126682a23be99bf3a3c25723
parent5cc293d30d6884065cbfa86b2aa7c5176ab580f7
wl12xx: fix checking of started dev role

dev_role_id only indicates whether the dev role
is enabled, not started (e.g. on IBSS merge,
the device role is enabled, but not started).

Checking for any role in ROC (in order to determine
whether dev role was started) is wrong as well,
especially in multi-vif env.

Check for started dev role only by checking the dev_hlid.

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