]> git.baikalelectronics.ru Git - kernel.git/commit
wl12xx: prevent sched_scan when not idle or not in station mode
authorLuciano Coelho <coelho@ti.com>
Thu, 12 May 2011 14:07:55 +0000 (17:07 +0300)
committerLuciano Coelho <coelho@ti.com>
Thu, 12 May 2011 21:06:33 +0000 (00:06 +0300)
commitf0ab760d6e8ba995b5b29deef0d9ce7825626658
tree39e31fd84fbfd7d41af7358f817d376fa4149545
parent854f15e1de6a8e7eb83265ef68a69295a44d673f
wl12xx: prevent sched_scan when not idle or not in station mode

The current firmware only supports scheduled scan in station mode and
when idle.  To prevent the firmware from crashing, return -EOPNOTSUPP
when sched_scan start is called in an invalid state.

Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/scan.c