Changeset 5353

Show
Ignore:
Timestamp:
09/27/09 04:04:36 (4 years ago)
Author:
jow
Message:

modules/admin-full: fix some problems with b43

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm

    r5351 r5353  
    6666        -- dunno yet 
    6767        else 
    68             return "Unkown 802.11 Wireless Controller" 
     68            return "Generic 802.11 Wireless Controller" 
    6969        end 
    7070    end 
     
    161161                <td colspan="2" style="text-align:left"> 
    162162                    <big><strong><%=state.hwname%> (<%=dev%>)</strong></big><br /> 
    163                     <strong>Channel:</strong> <%=find_wifi_frequency(state)%> | 
    164                     <strong>Bitrate:</strong> <%=(state and state.networks[1]) and (state.networks[1].info.bitrate / 1000) .. " Mb/s" or "n/a"%> 
     163                    <% if state.networks[1] and state.networks[1].info then %> 
     164                        <strong>Channel:</strong> <%=find_wifi_frequency(state)%> | 
     165                        <strong>Bitrate:</strong> <%=state.networks[1].info.bitrate and (state.networks[1].info.bitrate / 1000) .. " Mb/s" or "n/a"%> 
     166                    <% end %> 
    165167                </td> 
    166168                <td style="width:40px"> 
     
    177179                    <td></td> 
    178180                    <td class="cbi-value-field" style="width:16px; padding:3px"> 
    179                         <img src="<%=guess_wifi_signal(net.info)%>" title="Signal: <%=net.info.signal%> dBm / Noise: <%=net.info.noise%> dBm" /><br /> 
     181                        <img src="<%=guess_wifi_signal(net.info)%>" title="Signal: <%=net.info.signal or 0%> dBm / Noise: <%=net.info.noise or 0%> dBm" /><br /> 
    180182                        <small><%=percent_wifi_signal(net.info)%>%</small> 
    181183                    </td> 
     
    184186                        <strong>Mode:</strong> <%=net.info.mode%><br /> 
    185187                        <strong>BSSID:</strong> <%=net.info.bssid%> | 
    186                         <strong>Encryption:</strong> <%=net.info.enctype%> 
     188                        <strong>Encryption:</strong> <%=net.info.enctype or "None"%> 
    187189                    </td> 
    188190                    <td class="cbi-value-field" style="width:40px">