aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2012-08-09 20:27:48 (GMT)
committerJouni Malinen <j@w1.fi>2013-11-24 20:46:38 (GMT)
commit6d674628d459a73b82ca34e9cbd30564d5acf426 (patch)
treeb5a36805578473d89f92a93c6ae4fbbbeebd2533
parent615831e8ae5ae2fc77bf94b83392795a3a61f1ed (diff)
downloadhostap-6d674628d459a73b82ca34e9cbd30564d5acf426.zip
hostap-6d674628d459a73b82ca34e9cbd30564d5acf426.tar.gz
hostap-6d674628d459a73b82ca34e9cbd30564d5acf426.tar.bz2
nl80211: Disable offchannel TX offload in ANDROID_P2P build
TODO: Is this really needed anymore? If so, why? This breaks offchannel TX offloading that some drivers need.
-rw-r--r--src/drivers/driver_nl80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 5fe1628..f8a661f 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -9607,8 +9607,10 @@ static int nl80211_send_frame_cmd(struct i802_bss *bss,
goto nla_put_failure;
if (freq)
NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_FREQ, freq);
+#ifndef ANDROID_P2P
if (wait)
NLA_PUT_U32(msg, NL80211_ATTR_DURATION, wait);
+#endif /* ANDROID_P2P */
if (offchanok && (drv->capa.flags & WPA_DRIVER_FLAGS_OFFCHANNEL_TX))
NLA_PUT_FLAG(msg, NL80211_ATTR_OFFCHANNEL_TX_OK);
if (no_cck)