Date:2010-07-22 18:01:17 (13 years 8 months ago)
Author:jow
Commit:ca8826ce873186dcf392f9492d4deecab28ace13
Message:[package] mac80211: fix handling of frag and rts options, thanks stintel!

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22355 3c298f89-4303-0410-b956-a3cf2f4a3e73
Files: package/mac80211/files/lib/wifi/mac80211.sh (3 diffs)

Change Details

package/mac80211/files/lib/wifi/mac80211.sh
214214    config_get txpower "$device" txpower
215215    config_get country "$device" country
216216    config_get distance "$device" distance
217    config_get frag "$device" frag
218    config_get rts "$device" rts
217219    find_mac80211_phy "$device" || return 0
218220    config_get phy "$device" phy
219221    local i=0
...... 
227229    }
228230
229231    [ -n "$distance" ] && iw phy "$phy" set distance "$distance"
232    [ -n "$frag" ] && iw phy "$phy" set frag "${frag%%.*}"
233    [ -n "$rts" ] && iw phy "$phy" set rts "${rts%%.*}"
230234
231235    export channel fixed
232236    # convert channel to frequency
...... 
318322        # wifi-device) if the latter doesn't exist
319323        txpower="${txpower:-$vif_txpower}"
320324        [ -z "$txpower" ] || iwconfig "$ifname" txpower "${txpower%%.*}"
321
322        config_get frag "$vif" frag
323        if [ -n "$frag" ]; then
324            iw phy "$phy" set frag "${frag%%.*}"
325        fi
326
327        config_get rts "$vif" rts
328        if [ -n "$rts" ]; then
329            iw phy "$phy" set rts "${rts%%.*}"
330        fi
331325    done
332326
333327    local start_hostapd=

Archive Download the corresponding diff file



interactive