aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/offchannel.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-12-14 11:06:41 (GMT)
committerJouni Malinen <j@w1.fi>2014-12-14 13:47:04 (GMT)
commit8e3afd7f6c912a20ac2fe04efe7bf9d57785bb97 (patch)
tree6a782ff58cce27d26dfc22c2f1683698bedf6b24 /wpa_supplicant/offchannel.c
parent11ace2ed1fd77c51c78d7cc7dd6c28b13da69eb9 (diff)
downloadhostap-8e3afd7f6c912a20ac2fe04efe7bf9d57785bb97.zip
hostap-8e3afd7f6c912a20ac2fe04efe7bf9d57785bb97.tar.gz
hostap-8e3afd7f6c912a20ac2fe04efe7bf9d57785bb97.tar.bz2
offchannel: Use wpas_get_tx_interface() src parameter more consistently
Both the wpa_s->pending_action_src and src argument to wpas_get_tx_interface() were used somewhat randomly. Make this more consistent since these values are pointing to the same address and the implementation is easier to understand when it is obvious that there is only one address being used. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/offchannel.c')
-rw-r--r--wpa_supplicant/offchannel.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/wpa_supplicant/offchannel.c b/wpa_supplicant/offchannel.c
index f4515e9..8ab7ab8 100644
--- a/wpa_supplicant/offchannel.c
+++ b/wpa_supplicant/offchannel.c
@@ -30,8 +30,7 @@ wpas_get_tx_interface(struct wpa_supplicant *wpa_s, const u8 *src)
*/
iface = wpa_s->global->ifaces;
while (iface) {
- if (os_memcmp(wpa_s->pending_action_src,
- iface->own_addr, ETH_ALEN) == 0)
+ if (os_memcmp(src, iface->own_addr, ETH_ALEN) == 0)
break;
iface = iface->next;
}
@@ -265,8 +264,7 @@ int offchannel_send_action(struct wpa_supplicant *wpa_s, unsigned int freq,
struct wpa_supplicant *iface;
int ret;
- iface = wpas_get_tx_interface(wpa_s,
- wpa_s->pending_action_src);
+ iface = wpas_get_tx_interface(wpa_s, src);
wpa_s->action_tx_wait_time = wait_time;
ret = wpa_drv_send_action(