From: Jouni Malinen Date: Sun, 22 Mar 2015 19:45:47 +0000 (+0200) Subject: Remove duplicated wpa_s->conf->interworking check X-Git-Tag: hostap_2_5~932 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fd52a612a1a1feb945c96ee744daedf5cf02464;p=thirdparty%2Fhostap.git Remove duplicated wpa_s->conf->interworking check wpas_add_interworking_elements() does not need to do this since the caller is already checking whether Interworking is enabled. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c index ae534ff8c..3c6b2c7fb 100644 --- a/wpa_supplicant/scan.c +++ b/wpa_supplicant/scan.c @@ -418,9 +418,6 @@ static void wpa_supplicant_optimize_freqs( static void wpas_add_interworking_elements(struct wpa_supplicant *wpa_s, struct wpabuf *buf) { - if (wpa_s->conf->interworking == 0) - return; - wpabuf_put_u8(buf, WLAN_EID_INTERWORKING); wpabuf_put_u8(buf, is_zero_ether_addr(wpa_s->conf->hessid) ? 1 : 1 + ETH_ALEN);