linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / net / wireless / hostap / hostap_ap.c
index 06c3fa3..753a1de 100644 (file)
@@ -3141,7 +3141,7 @@ int hostap_add_sta(struct ap_data *ap, u8 *sta_addr)
        if (ret == 1) {
                sta = ap_add_sta(ap, sta_addr);
                if (!sta)
-                       return -1;
+                       ret = -1;
                sta->flags = WLAN_STA_AUTH | WLAN_STA_ASSOC;
                sta->ap = 1;
                memset(sta->supported_rates, 0, sizeof(sta->supported_rates));