<div dir="ltr">Also, to clarify, my AP virtual interfaces are bridged, so they would appear as &quot;br-ap1&quot; , &quot;br-arp2&quot; to the hotplug script I quoted.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 12, 2014 at 12:33 PM, Ben West <span dir="ltr">&lt;<a href="mailto:ben@gowasabi.net" target="_blank">ben@gowasabi.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">On 2.4GHz meshes I operate, where each node broadcasts an IBSS SSID plus one or two AP SSID&#39;s, this is what I do to bar very low bitrates on the AP SSID&#39;s.<div><br></div><div>/etc/hotplug.d/90-ratemask-firewall:</div><div><br></div><div><p style="margin:0px;font-size:11px;font-family:Menlo">#!/bin/sh</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;font-family:Menlo">. /lib/functions.sh</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">. /lib/functions/network.sh</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;font-family:Menlo"># Don&#39;t set rates on mesh interface</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">meshif=$(uci -P /var/state get network.mesh.ifname)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;font-family:Menlo"># Disable low legacy 2.4GHz bitrates</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">if [ add = &quot;$ACTION&quot; -a wlan0 != &quot;$meshif&quot; ]; then</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><span style="white-space:pre-wrap">        </span>case &quot;$DEVICE&quot; in</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><span style="white-space:pre-wrap">                </span>br-*)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><span style="white-space:pre-wrap">                        </span>#Bridged interfage, check for wlan0 as member</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><span style="white-space:pre-wrap">                        </span>for i in $(ls /sys/class/net/$DEVICE/brif); do</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><span style="white-space:pre-wrap">                                </span>case &quot;$i&quot; in</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><span style="white-space:pre-wrap">                                        </span>wlan0)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><span style="white-space:pre-wrap">                                                </span>logger setting bitrate for device &quot;$i&quot; on interface &quot;$INTERFACE&quot;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><span style="white-space:pre-wrap">                                                </span>iw &quot;$i&quot; set bitrates legacy-2.4 5.5 6 9 11 12 18 24 36 48 54</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><span style="white-space:pre-wrap">                                        </span>;;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><span style="white-space:pre-wrap">                                </span>esac</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><span style="white-space:pre-wrap">                        </span>done</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><span style="white-space:pre-wrap">                </span>;;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><span style="white-space:pre-wrap">        </span>esac</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">fi</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">#</p></div><div><br></div><div>I don&#39;t limit bitrates on the IBSS interface (named &quot;mesh&quot;), since I would want the nodes to stay on the adhoc net in event of extreme interference (i.e. so that they remain controllable).<div><br></div><div><br></div></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Fri, Sep 12, 2014 at 12:19 PM, Mitar <span dir="ltr">&lt;<a href="mailto:mitar@tnode.com" target="_blank">mitar@tnode.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
I had in mind AP mode, for clients. But interesting to learn about IBSS<br>
join as well.<br>
<br>
But I really think it is useful to be limit the minimum bitrate. It is<br>
strange for me that is not easily available. Am I missing something? Is<br>
it not a good idea?<br>
<br>
<br>
Mitar<br>
<div><div><br>
&gt; Mitar, you may want to check the basic-rates argument of the ibss join<br>
&gt; command. (assuming we are talking about ibss mode):<br>
&gt;<br>
&gt; from the output of &quot;iw dev wlan0 ibss join&quot;:<br>
&gt;<br>
&gt; [basic-rates &lt;rate in Mbps,rate2,...&gt;]<br>
&gt;<br>
&gt; all the stations must have the same basic rates to join the ibss cell.<br>
&gt; Rates that are not part of the basic-rate set should not be used by the<br>
&gt; stations.<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; On 12/09/14 14:52, Pau wrote:<br>
&gt;&gt; Not sure if it solves your question, but just in case it helps you somehow.<br>
&gt;&gt; In a mesh network you can use the mcast_rate option to set the multicast rate of the WiFi devices. So if the routing protocol is using multicast flooding to discover neighbors, it will only discover those who are available at this specific rate.<br>
&gt;&gt;<br>
&gt;&gt; Cheers.<br>
&gt;&gt;<br>
&gt;&gt; On 12/09/14 14:00, Bastian Bittorf wrote:<br>
&gt;&gt;&gt; * Mitar &lt;<a href="mailto:mitar@tnode.com" target="_blank">mitar@tnode.com</a>&gt; [12.09.2014 08:56]:<br>
&gt;&gt;&gt;&gt; This seems to fix the bitrate to a fixed one, not setting the minimum one.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; as far as i understand, you can set a &quot;allowed rateset&quot; with &#39;iw&#39;, which<br>
&gt;&gt;&gt; should fit your needs...<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; bye, bastian<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; Battlemesh mailing list<br>
&gt;&gt;&gt; <a href="mailto:Battlemesh@ml.ninux.org" target="_blank">Battlemesh@ml.ninux.org</a><br>
&gt;&gt;&gt; <a href="http://ml.ninux.org/mailman/listinfo/battlemesh" target="_blank">http://ml.ninux.org/mailman/listinfo/battlemesh</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Battlemesh mailing list<br>
&gt; <a href="mailto:Battlemesh@ml.ninux.org" target="_blank">Battlemesh@ml.ninux.org</a><br>
&gt; <a href="http://ml.ninux.org/mailman/listinfo/battlemesh" target="_blank">http://ml.ninux.org/mailman/listinfo/battlemesh</a><br>
&gt;<br>
<br>
--<br>
</div></div><a href="http://mitar.tnode.com/" target="_blank">http://mitar.tnode.com/</a><br>
<a href="https://twitter.com/mitar_m" target="_blank">https://twitter.com/mitar_m</a><br>
<div><div>_______________________________________________<br>
Battlemesh mailing list<br>
<a href="mailto:Battlemesh@ml.ninux.org" target="_blank">Battlemesh@ml.ninux.org</a><br>
<a href="http://ml.ninux.org/mailman/listinfo/battlemesh" target="_blank">http://ml.ninux.org/mailman/listinfo/battlemesh</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>Ben West<div><a href="http://gowasabi.net" target="_blank">http://gowasabi.net</a><br><a href="mailto:ben@gowasabi.net" target="_blank">ben@gowasabi.net</a><br><a href="tel:314-246-9434" value="+13142469434" target="_blank">314-246-9434</a><br></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Ben West<div><a href="http://gowasabi.net" target="_blank">http://gowasabi.net</a><br><a href="mailto:ben@gowasabi.net" target="_blank">ben@gowasabi.net</a><br>314-246-9434<br></div>
</div>