Return-path: Received: from va3ehsobe002.messaging.microsoft.com ([216.32.180.12]:32497 "EHLO VA3EHSOBE002.bigfish.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757676AbZC3SUm (ORCPT ); Mon, 30 Mar 2009 14:20:42 -0400 Message-ID: <49D109B4.7020808@am.sony.com> (sfid-20090330_202107_277917_A53F628A) Date: Mon, 30 Mar 2009 11:04:36 -0700 From: Geoff Levand MIME-Version: 1.0 To: , CC: , , Masakazu Mokuno Subject: [patch] net/ps3: Fix wireless AP connect error handling Content-Type: text/plain; charset="ISO-8859-1" Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Masakazu Mokuno This patch fixes the bug that the driver tries to continue to connect(associate) to AP even if gelic_wl_do_{wpa,wep}_setup() fails, Signed-off-by: Masakazu Mokuno Signed-off-by: Geoff Levand --- drivers/net/ps3_gelic_wireless.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/net/ps3_gelic_wireless.c +++ b/drivers/net/ps3_gelic_wireless.c @@ -2101,6 +2101,9 @@ static int gelic_wl_associate_bss(struct if (ret) { pr_debug("%s: WEP/WPA setup failed %d\n", __func__, ret); + ret = -EPERM; + gelic_wl_send_iwap_event(wl, NULL); + goto out; } /* start association */