mac80211: return correct error return from ieee80211_wep_init
authorJeremy Fitzhardinge <jeremy@goop.org>
Mon, 14 Jul 2008 19:52:08 +0000 (12:52 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 Jul 2008 20:55:07 +0000 (16:55 -0400)
commit023a04bebe7030c1e6d5347bd3f27a3e49a1f222
tree75309969e9c1749e20f26dd6b86d9d5fcd24e31a
parent1b0241656b658522a15e7aad570cb8ea6b255a2a
mac80211: return correct error return from ieee80211_wep_init

Return the proper error code rather than a hard-coded ENOMEM from
ieee80211_wep_init.  Also, print the error code on failure.

Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/main.c
net/mac80211/wep.c