]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Disable offchannel TX offload in ANDROID_P2P build
authorDmitry Shmidt <dimitrysh@google.com>
Thu, 9 Aug 2012 20:27:48 +0000 (23:27 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 24 Nov 2013 20:46:38 +0000 (22:46 +0200)
TODO: Is this really needed anymore? If so, why? This breaks offchannel
TX offloading that some drivers need.

src/drivers/driver_nl80211.c

index 5fe1628ad9d843f403dba17a56e11b92311a00f0..f8a661f1940b45cd36144512b3ae9152d4029168 100644 (file)
@@ -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)