Changes in / [6ff23ff:4f8772d4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ar9271/ar9271.c
r6ff23ff r4f8772d4 166 166 static errno_t ar9271_get_cable_state(ddf_fun_t *fun, nic_cable_state_t *state) 167 167 { 168 *state = NIC_CS_PLUGGED; 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; 169 179 170 180 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.