Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/ar9271/ar9271.c

    r8800b13 rae7d03c  
    166166static errno_t ar9271_get_cable_state(ddf_fun_t *fun, nic_cable_state_t *state)
    167167{
    168         nic_t *nic_data = nic_get_from_ddf_fun(fun);
    169         if (!nic_data)
    170                 return ENOENT;
    171         ar9271_t *ar9271 = nic_get_specific(nic_data);
    172         if (!ar9271)
    173                 return ENOENT;
    174 
    175         if (ieee80211_is_connected(ar9271->ieee80211_dev))
    176                 *state = NIC_CS_PLUGGED;
    177         else
    178                 *state = NIC_CS_UNPLUGGED;
     168        *state = NIC_CS_PLUGGED;
    179169
    180170        return EOK;
Note: See TracChangeset for help on using the changeset viewer.