From: Jouni Malinen Date: Mon, 12 Dec 2011 14:32:07 +0000 (+0200) Subject: nl80211: Fix CONFIG_TDLS=y build X-Git-Tag: aosp-jb-start~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa543c0c33cb4f6ad2f3ca3e3f6c30a1e0ebf535;p=thirdparty%2Fhostap.git nl80211: Fix CONFIG_TDLS=y build Signed-hostap: Jouni Malinen --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index a797a3ebe..ed279c600 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -2997,7 +2997,7 @@ static int nl80211_mgmt_subscribe_non_ap(struct i802_bss *bss) #ifdef CONFIG_TDLS if ((drv->capa.flags & WPA_DRIVER_FLAGS_TDLS_SUPPORT)) { /* TDLS Discovery Response */ - if (nl80211_register_action_frame(drv, (u8 *) "\x04\x0e", 2) < + if (nl80211_register_action_frame(bss, (u8 *) "\x04\x0e", 2) < 0) return -1; }