libertas: fix signedness bug in lbs_auth_to_authtype()
authorAmitkumar Karwar <akarwar@marvell.com>
Wed, 28 Mar 2012 18:38:01 +0000 (11:38 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 13 Apr 2012 18:05:35 +0000 (14:05 -0400)
commiteffcc625eb4ab3b10b4744237fd37e8f7dcd6511
tree903cc745e214fbe36d4c244360e354cdfa7b0a8f
parentb4838d12e1f3cb48c2489a0b08733b5dbf848297
libertas: fix signedness bug in lbs_auth_to_authtype()

Return type for lbs_auth_to_authtype() is changed from "u8" to
"int" to return negative error code correctly.
Also an error check is added in connect handler for invalid auth
type.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kiran Divekar <dkiran@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cfg.c