Change Details
package/mac80211/files/lib/wifi/mac80211.sh |
214 | 214 | config_get txpower "$device" txpower |
215 | 215 | config_get country "$device" country |
216 | 216 | config_get distance "$device" distance |
| 217 | config_get frag "$device" frag |
| 218 | config_get rts "$device" rts |
217 | 219 | find_mac80211_phy "$device" || return 0 |
218 | 220 | config_get phy "$device" phy |
219 | 221 | local i=0 |
... | ... | |
227 | 229 | } |
228 | 230 | |
229 | 231 | [ -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%%.*}" |
230 | 234 | |
231 | 235 | export channel fixed |
232 | 236 | # convert channel to frequency |
... | ... | |
318 | 322 | # wifi-device) if the latter doesn't exist |
319 | 323 | txpower="${txpower:-$vif_txpower}" |
320 | 324 | [ -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 |
331 | 325 | done |
332 | 326 | |
333 | 327 | local start_hostapd= |
Download the corresponding diff file