diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-05-15 09:36:10 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-05-15 09:36:10 +0000 |
commit | d3bc6a085a57a83afab70ae305424b069b2ca414 (patch) | |
tree | 066f9ec21129d406d1f6624496e028bbb6adca2c /package/mac80211/files/lib | |
parent | bbaa5cfabef0210a0c2cd76bc661e0338503d84c (diff) |
mac80211: add mesh_param support
This patch add mesh_param support in mac80211.sh
It suppose that this patch http://patchwork.openwrt.org/patch/3540/ is applied (add HT support for mesh)
Tested with rspro(ar9280)/wr1043nd, BB r36211
see also this http://lists.open80211s.org/pipermail/devel/2012-June/003352.html
(mesh_hwmp_rootmode 1 & mesh_gate_announcements 1
=> mesh_hwmp_rootmode 4 & mesh_gate_announcements 1)
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36640 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/files/lib')
-rw-r--r-- | package/mac80211/files/lib/wifi/mac80211.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh index 580a6ded4..a052a1cbf 100644 --- a/package/mac80211/files/lib/wifi/mac80211.sh +++ b/package/mac80211/files/lib/wifi/mac80211.sh @@ -531,6 +531,20 @@ enable_mac80211() { ${mcval:+mcast-rate $mcval} \ ${keyspec:+keys $keyspec} ;; + mesh) + mp_list="mesh_retry_timeout mesh_confirm_timeout mesh_holding_timeout mesh_max_peer_links + mesh_max_retries mesh_ttl mesh_element_ttl mesh_auto_open_plinks mesh_hwmp_max_preq_retries + mesh_path_refresh_time mesh_min_discovery_timeout mesh_hwmp_active_path_timeout + mesh_hwmp_preq_min_interval mesh_hwmp_net_diameter_traversal_time mesh_hwmp_rootmode + mesh_hwmp_rann_interval mesh_gate_announcements mesh_fwding mesh_sync_offset_max_neighor + mesh_rssi_threshold mesh_hwmp_active_path_to_root_timeout mesh_hwmp_root_interval + mesh_hwmp_confirmation_interval mesh_power_mode mesh_awake_window" + for mp in $mp_list + do + config_get mp_val "$vif" "$mp" "" + [ -n "$mp_val" ] && iw dev "$ifname" set mesh_param "$mp" "$mp_val" + done + ;; sta) if eval "type wpa_supplicant_setup_vif" 2>/dev/null >/dev/null; then wpa_supplicant_setup_vif "$vif" nl80211 "${hostapd_ctrl:+-H $hostapd_ctrl}" || { |