Skip to content

Commit

Permalink
www: prepare for MT7615 4T4R
Browse files Browse the repository at this point in the history
  • Loading branch information
hanwckf committed Dec 26, 2018
1 parent 7127943 commit 5059979
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions trunk/user/rc/ralink.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,7 @@ gen_ralink_config(int is_soc_ap, int is_aband, int disable_autoscan)
fprintf(fp, "MUTxRxEnable=%d\n", 3);
else
fprintf(fp, "MUTxRxEnable=%d\n", 0);

fprintf(fp, "ITxBfTimeout=%d\n", 0);
fprintf(fp, "ETxBfTimeout=%d\n", 0);
fprintf(fp, "ETxBfNoncompress=%d\n", 0);
Expand Down
12 changes: 12 additions & 0 deletions trunk/user/www/n56u_ribbon_fixed/Advanced_WAdvanced2g_Content.asp
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,19 @@ function initial(){
}
}
if (support_2g_stream_tx()<4)
document.form.rt_stream_tx.remove(3);
if (support_2g_stream_tx()<3)
document.form.rt_stream_tx.remove(2);
if (support_2g_stream_tx()<2) {
document.form.rt_stream_tx.remove(1);
showhide_div("row_greenap", 0);
}
if (support_2g_stream_rx()<4)
document.form.rt_stream_rx.remove(3);
if (support_2g_stream_rx()<3)
document.form.rt_stream_rx.remove(2);
if (support_2g_stream_rx()<2)
document.form.rt_stream_rx.remove(1);
Expand Down Expand Up @@ -176,6 +184,8 @@ function done_validating(action){
<select name="rt_stream_tx" class="input">
<option value="1" <% nvram_match_x("", "rt_stream_tx", "1", "selected"); %>>1T (150Mbps)</option>
<option value="2" <% nvram_match_x("", "rt_stream_tx", "2", "selected"); %>>2T (300Mbps)</option>
<option value="3" <% nvram_match_x("", "rt_stream_tx", "3", "selected"); %>>3T (450Mbps)</option>
<option value="4" <% nvram_match_x("", "rt_stream_tx", "4", "selected"); %>>4T (600Mbps)</option>
</select>
</td>
</tr>
Expand All @@ -185,6 +195,8 @@ function done_validating(action){
<select name="rt_stream_rx" class="input">
<option value="1" <% nvram_match_x("", "rt_stream_rx", "1", "selected"); %>>1R (150Mbps)</option>
<option value="2" <% nvram_match_x("", "rt_stream_rx", "2", "selected"); %>>2R (300Mbps)</option>
<option value="3" <% nvram_match_x("", "rt_stream_rx", "3", "selected"); %>>3R (450Mbps)</option>
<option value="4" <% nvram_match_x("", "rt_stream_rx", "4", "selected"); %>>4R (600Mbps)</option>
</select>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ function initial(){
o2.options[1].text = "2R (867Mbps)";
o1.options[2].text = "3T (1300Mbps)";
o2.options[2].text = "3R (1300Mbps)";
o1.options[3].text = "4T (1733Mbps)";
o2.options[3].text = "4R (1733Mbps)";
}
if (typeof(support_5g_wid) === 'function'){
Expand All @@ -58,13 +60,17 @@ function initial(){
}
}
if (support_5g_stream_tx()<4)
document.form.wl_stream_tx.remove(3);
if (support_5g_stream_tx()<3)
document.form.wl_stream_tx.remove(2);
if (support_5g_stream_tx()<2) {
document.form.wl_stream_tx.remove(1);
showhide_div("row_greenap", 0);
}
if (support_5g_stream_rx()<4)
document.form.wl_stream_rx.remove(3);
if (support_5g_stream_rx()<3)
document.form.wl_stream_rx.remove(2);
if (support_5g_stream_rx()<2)
Expand Down Expand Up @@ -184,6 +190,7 @@ function done_validating(action){
<option value="1" <% nvram_match_x("", "wl_stream_tx", "1", "selected"); %>>1T (150Mbps)</option>
<option value="2" <% nvram_match_x("", "wl_stream_tx", "2", "selected"); %>>2T (300Mbps)</option>
<option value="3" <% nvram_match_x("", "wl_stream_tx", "3", "selected"); %>>3T (450Mbps)</option>
<option value="4" <% nvram_match_x("", "wl_stream_tx", "4", "selected"); %>>4T (600Mbps)</option>
</select>
</td>
</tr>
Expand All @@ -194,6 +201,7 @@ function done_validating(action){
<option value="1" <% nvram_match_x("", "wl_stream_rx", "1", "selected"); %>>1R (150Mbps)</option>
<option value="2" <% nvram_match_x("", "wl_stream_rx", "2", "selected"); %>>2R (300Mbps)</option>
<option value="3" <% nvram_match_x("", "wl_stream_rx", "3", "selected"); %>>3R (450Mbps)</option>
<option value="4" <% nvram_match_x("", "wl_stream_rx", "4", "selected"); %>>4R (600Mbps)</option>
</select>
</td>
</tr>
Expand Down

0 comments on commit 5059979

Please sign in to comment.