From: Dmitry Shmidt Date: Thu, 9 Aug 2012 20:27:48 +0000 (+0300) Subject: nl80211: Disable offchannel TX offload in ANDROID_P2P build X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d674628d459a73b82ca34e9cbd30564d5acf426;p=thirdparty%2Fhostap.git 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. --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 5fe1628ad..f8a661f19 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)