linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/5] mac80211: Set txrc.bss to true for OCB interfaces
@ 2015-08-05 14:02 Bertold Van den Bergh
  2015-08-13 12:00 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Bertold Van den Bergh @ 2015-08-05 14:02 UTC (permalink / raw)
  To: johannes, linux-wireless; +Cc: Bertold Van den Bergh

To make mac80211 accept the multicast rate requested by the user the
rate control should be told that it is operating in BSS mode.
Without this, the default rate is selected in rate_control_send_low
(!pubsta and !txrc->bss)

Signed-off-by: Bertold Van den Bergh <bertold.vandenbergh@esat.kuleuven.be>
---
 net/mac80211/tx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 2079d48..84e0e8c 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -686,7 +686,8 @@ ieee80211_tx_h_rate_ctrl(struct ieee80211_tx_data *tx)
 
 	txrc.bss = (tx->sdata->vif.type == NL80211_IFTYPE_AP ||
 		    tx->sdata->vif.type == NL80211_IFTYPE_MESH_POINT ||
-		    tx->sdata->vif.type == NL80211_IFTYPE_ADHOC);
+		    tx->sdata->vif.type == NL80211_IFTYPE_ADHOC ||
+		    tx->sdata->vif.type == NL80211_IFTYPE_OCB);
 
 	/* set up RTS protection if desired */
 	if (len > tx->local->hw.wiphy->rts_threshold) {
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 2/5] mac80211: Set txrc.bss to true for OCB interfaces
  2015-08-05 14:02 [PATCH 2/5] mac80211: Set txrc.bss to true for OCB interfaces Bertold Van den Bergh
@ 2015-08-13 12:00 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2015-08-13 12:00 UTC (permalink / raw)
  To: Bertold Van den Bergh, linux-wireless

On Wed, 2015-08-05 at 16:02 +0200, Bertold Van den Bergh wrote:
> To make mac80211 accept the multicast rate requested by the user the
> rate control should be told that it is operating in BSS mode.
> Without this, the default rate is selected in rate_control_send_low
> (!pubsta and !txrc->bss)
> 
Applied 1 and 2, although the 'bss' variable is somewhat misnamed I
guess.

johannes

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-13 12:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-05 14:02 [PATCH 2/5] mac80211: Set txrc.bss to true for OCB interfaces Bertold Van den Bergh
2015-08-13 12:00 ` Johannes Berg

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).