wl12xx: simplify wl1271_ssid_set()
authorEliad Peller <eliad@wizery.com>
Sun, 1 May 2011 06:56:45 +0000 (09:56 +0300)
committerLuciano Coelho <coelho@ti.com>
Thu, 12 May 2011 21:06:31 +0000 (00:06 +0300)
commit889cb360b4f48c1334311093161f06f7b4bd77d2
tree601cf1594b60dde7755260a67d276fc9e8a8b04a
parent6b86bd62a505a4a9739474f00f8088395b7a80ba
wl12xx: simplify wl1271_ssid_set()

Simplify wl1271_ssid_set by re-using cfg80211_find_ie instead of
reimplementing it.

Additionally, add a length check to prevent a potential buffer overflow.

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