]> 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)
commitd716798a13f0ce9a30d02261b2e689a4d79632f4
tree79b8ce1e09f26b9d126682a23be99bf3a3c25723
parent42f05301d836d9a99b902bd0a7bd5ae3a534bd6b
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