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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2015-03-22 21:45:47 +02:00
parent ad4430971f
commit 0fd52a612a

View file

@ -418,9 +418,6 @@ static void wpa_supplicant_optimize_freqs(
static void wpas_add_interworking_elements(struct wpa_supplicant *wpa_s, static void wpas_add_interworking_elements(struct wpa_supplicant *wpa_s,
struct wpabuf *buf) struct wpabuf *buf)
{ {
if (wpa_s->conf->interworking == 0)
return;
wpabuf_put_u8(buf, WLAN_EID_INTERWORKING); wpabuf_put_u8(buf, WLAN_EID_INTERWORKING);
wpabuf_put_u8(buf, is_zero_ether_addr(wpa_s->conf->hessid) ? 1 : wpabuf_put_u8(buf, is_zero_ether_addr(wpa_s->conf->hessid) ? 1 :
1 + ETH_ALEN); 1 + ETH_ALEN);