Skip to content
Snippets Groups Projects
Select Git revision
  • 207337b5deb02d7e7033c8928862a6861ec70d15
  • v2018.2.x default protected
  • 0x4A6F-rpi4
  • 0x4A6F-master
  • master
  • v2018.2.2-ffs
  • v2016.2.4-batmanbug
  • radv-filterd
  • v2016.2.x
  • hoodselector
  • v2016.1.x
  • babel
  • v2015.1.x
  • 2014.4.x
  • 2014.3.x
  • v2018.2.2-ffs0.1
  • v2018.2.1-ffs0.1
  • v2018.2.1
  • v2018.2-ffs0.1
  • v2018.2
  • v2018.1.4
  • v2018.1.3
  • v2018.1.2
  • v2018.1.1
  • v2018.1
  • v2017.1.8
  • v2017.1.7
  • v2017.1.6
  • v2017.1.5
  • v2017.1.4
  • v2017.1.3
  • v2017.1.2
  • v2016.2.7
  • v2017.1.1
  • v2017.1
35 results

modules

Blame
  • Forked from firmware / FFS Gluon
    Source project has a limited visibility.
    0016-mac80211-set-mcast-rate-for-mesh-point-interfaces.patch 1.71 KiB
    From: Nils Schneider <nils@nilsschneider.net>
    Date: Fri, 24 Jul 2015 21:52:12 +0200
    Subject: mac80211: set mcast-rate for mesh point interfaces
    
    In order to set the multicast rate for mesh point interfaces the "mesh join"
    was made explicit and moved to mac80211_setup_vif(), similar to how it is
    done for IBSS interfaces.
    
    Previously, the mesh join was made implicit in case authentication (i.e.
    $key) was not used when creating the interface in mac80211_prepare_vif(),
    while using authentication would create the interface first, then join
    later in mac80211_setup_vif() by starting authsae.
    
    Signed-off-by: Nils Schneider <nils@nilsschneider.net>
    
    diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
    index c9bc3d6..8137b24 100644
    --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
    +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
    @@ -455,12 +455,7 @@ mac80211_prepare_vif() {
     			}
     		;;
     		mesh)
    -			json_get_vars key mesh_id
    -			if [ -n "$key" ]; then
    -				iw phy "$phy" interface add "$ifname" type mp
    -			else
    -				iw phy "$phy" interface add "$ifname" type mp mesh_id "$mesh_id"
    -			fi
    +			iw phy "$phy" interface add "$ifname" type mp
     		;;
     		monitor)
     			iw phy "$phy" interface add "$ifname" type monitor
    @@ -603,6 +598,13 @@ mac80211_setup_vif() {
     					wireless_vif_parse_encryption
     					mac80211_setup_supplicant || failed=1
     				fi
    +			else
    +				json_get_vars mesh_id mcast_rate
    +
    +				mcval=
    +				[ -n "$mcast_rate" ] && wpa_supplicant_add_rate mcval "$mcast_rate"
    +
    +				iw dev "$ifname" mesh join "$mesh_id" ${mcval:+mcast-rate $mcval}
     			fi
     
     			for var in $MP_CONFIG_INT $MP_CONFIG_BOOL $MP_CONFIG_STRING; do