|
18 | 18 | <th data-colname='wifi.snr'>SNR</th> |
19 | 19 | <th data-colname='wifi.agrctlrssi'>RSSI</th> |
20 | 20 | <th data-i18n="wifi.agrctlnoise_short" data-colname='wifi.agrctlnoise'></th> |
21 | | - <th data-i18n="wifi.x802_11_auth_short" data-colname='wifi.x802_11_auth'></th> |
| 21 | + <th data-i18n="wifi.phy_mode" data-colname='wifi.phy_mode'></th> |
22 | 22 | <th data-i18n="wifi.link_auth" data-colname='wifi.link_auth'></th> |
23 | 23 | <th data-i18n="wifi.op_mode" data-colname='wifi.op_mode'></th> |
| 24 | + <th data-colname='wifi.country_code' data-colname='wifi.country_code'></th> |
24 | 25 | <th data-colname='wifi.mcs'>MCS</th> |
| 26 | + <th data-i18n="wifi.x802_11_auth_short" data-colname='wifi.x802_11_auth'></th> |
25 | 27 | </tr> |
26 | 28 | </thead> |
27 | 29 | <tbody> |
28 | 30 | <tr> |
29 | | - <td data-i18n="listing.loading" colspan="15" class="dataTables_empty"></td> |
| 31 | + <td data-i18n="listing.loading" colspan="17" class="dataTables_empty"></td> |
30 | 32 | </tr> |
31 | 33 | </tbody> |
32 | 34 | </table> |
|
70 | 72 | var sn=$('td:eq(1)', nRow).html(); |
71 | 73 | var link = mr.getClientDetailLink(name, sn, '#tab_wifi-tab'); |
72 | 74 | $('td:eq(0)', nRow).html(link); |
73 | | - |
| 75 | + |
74 | 76 | // Format Last Tx |
75 | 77 | var lastTx=$('td:eq(5)', nRow).html(); |
76 | 78 | $('td:eq(5)', nRow).html('<span title="'+(lastTx*0.125)+' MB/sec">'+lastTx+" Mbps</span>"); |
77 | | - |
| 79 | + |
78 | 80 | // Format Max Tx |
79 | 81 | var maxTx=$('td:eq(6)', nRow).html(); |
80 | 82 | $('td:eq(6)', nRow).html('<span title="'+(maxTx*0.125)+' MB/sec">'+maxTx+" Mbps</span>"); |
81 | | - |
| 83 | + |
82 | 84 | // Calculate signal to noise ratio |
83 | 85 | var snr=$('td:eq(8)', nRow).html(); |
84 | 86 | var rssi=$('td:eq(9)', nRow).html(); |
|
88 | 90 | } else if (rssi !== "" && noise !== ""){ |
89 | 91 | $('td:eq(8)', nRow).html('<span title="'+i18n.t('wifi.snr_detail')+'">'+(rssi-noise)+' db</span>'); |
90 | 92 | } |
91 | | - |
| 93 | + |
92 | 94 | // Format RSSI |
93 | 95 | var rssi=$('td:eq(9)', nRow).html(); |
94 | 96 | $('td:eq(9)', nRow).html('<span title="'+i18n.t('wifi.rssi_detail')+'">'+rssi+' db</span>'); |
95 | | - |
| 97 | + |
96 | 98 | // Format Noise |
97 | 99 | var noise=$('td:eq(10)', nRow).html(); |
98 | 100 | $('td:eq(10)', nRow).html('<span title="'+i18n.t('wifi.noise_detail')+'">'+noise+' db</span>'); |
99 | | - |
100 | | - // Format 802.1x mode |
101 | | - var eightmode=$('td:eq(11)', nRow).html(); |
102 | | - eightmode = eightmode == 'open' ? i18n.t('wifi.open') : (eightmode) |
103 | | - $('td:eq(11)', nRow).html(eightmode) |
104 | | - |
| 101 | + |
105 | 102 | // Format Link Auth |
106 | 103 | var linkauth=$('td:eq(12)', nRow).html(); |
107 | 104 | linkauth = linkauth == 'none' ? i18n.t('wifi.none') : |
|
115 | 112 | linkauth = linkauth == 'wpa3-sae' ? i18n.t('wifi.wpa3-sae') : |
116 | 113 | (linkauth === 'wpa2' ? i18n.t('wifi.wpa2') : linkauth) |
117 | 114 | $('td:eq(12)', nRow).html(linkauth) |
118 | | - |
| 115 | + |
119 | 116 | // Format AP Mode |
120 | 117 | var apmode=$('td:eq(13)', nRow).html(); |
121 | 118 | apmode = apmode == 'station' ? i18n.t('wifi.station') : |
122 | 119 | apmode = apmode == 'station ' ? i18n.t('wifi.station') : (apmode) |
123 | 120 | $('td:eq(13)', nRow).html(apmode) |
124 | | - |
| 121 | + |
| 122 | + // Format 802.1x mode |
| 123 | + var eightmode=$('td:eq(16)', nRow).html(); |
| 124 | + eightmode = eightmode == 'open' ? i18n.t('wifi.open') : (eightmode) |
| 125 | + $('td:eq(16)', nRow).html(eightmode) |
| 126 | + |
125 | 127 | // Blank row if no wifi |
126 | 128 | var wifistate=$('td:eq(4)', nRow).html(); |
127 | 129 | if ( wifistate == 'no wifi' || wifistate == 'off' || wifistate == 'init') { |
|
136 | 138 | $('td:eq(12)', nRow).html("") |
137 | 139 | $('td:eq(13)', nRow).html("") |
138 | 140 | $('td:eq(14)', nRow).html("") |
| 141 | + $('td:eq(15)', nRow).html("") |
| 142 | + $('td:eq(16)', nRow).html("") |
139 | 143 | } |
140 | | - |
| 144 | + |
141 | 145 | // Format wifi state |
142 | 146 | var wifistate=$('td:eq(4)', nRow).html(); |
143 | 147 | wifistate = wifistate == 'running' ? i18n.t('wifi.running') : |
|
0 commit comments