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)
commit683c002447c12742f5151691083f68524f33b13a
tree39e31fd84fbfd7d41af7358f817d376fa4149545
parentd3eff81de6048d8af8f95f52f0f06625980f2efb
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