linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Pavel Machek <pavel@ucw.cz>,
	jirislaby@gmail.com, mickflemm@gmail.com,
	mcgrof@do-not-panic.com, linux-wireless@vger.kernel.org,
	kvalo@codeaurora.org
Subject: Re: Low latency communication over wifi
Date: Wed, 23 Sep 2015 13:21:52 +0200	[thread overview]
Message-ID: <1443007312.1889.8.camel@sipsolutions.net> (raw)
In-Reply-To: <20150923110343.GA19160@amd> (sfid-20150923_130348_584090_91456CD1)

On Wed, 2015-09-23 at 13:03 +0200, Pavel Machek wrote:
> Hi!
> 
> I'm trying to transfer some audio data over wifi. Latency constrains
> are such that if it would took more than 20msec to wait for
> transmission, the packet should be dropped instead, and new one 
> should be transmitted.

This is typically not supported, at least not by the drivers right now.
Some hardware might support it, not sure.

>   	  qi->tqi_cw_min = ath5k_cw_validate(0);
>           qi->tqi_cw_max = ath5k_cw_validate(20);
> 
> ...but I don't think it did what I wanted. What am I missing?

That just changes the content window settings, which changes the
probability of getting medium access.

> (I could use Intel 3945ABG-based card instead, but I figured out 
> ath5k might be easier to hack?)
> 
> Is there way to manipulate type of service from userland to get
> similar behaviour without patching kernel?

If your AP has WMM/QoS then you can use setsockopt(SO_PRIORITY) to
change the TID and thus the AC and get your packets classified as voice
(VO) on wifi, which makes them much more likely to get access to the
medium.

johannes

  reply	other threads:[~2015-09-23 11:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-23 11:03 Low latency communication over wifi Pavel Machek
2015-09-23 11:21 ` Johannes Berg [this message]
2015-09-26 10:24   ` Pavel Machek
2015-09-28  7:41     ` Johannes Berg
2015-09-28 12:15       ` Bastian Bittorf
2015-09-28 12:37         ` Johannes Berg
2015-09-28 12:52           ` Bastian Bittorf
2015-09-30 17:24       ` Pavel Machek
2015-09-30 17:33         ` Bastian Bittorf
2015-09-30 18:28         ` Johannes Berg
2015-09-23 11:27 ` ath5k filling logs (was Re: Low latency communication over wifi) Pavel Machek
2015-09-23 11:42 ` Low latency communication over wifi Bastian Bittorf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1443007312.1889.8.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=jirislaby@gmail.com \
    --cc=kvalo@codeaurora.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@do-not-panic.com \
    --cc=mickflemm@gmail.com \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).