wifi: fix disabled wifi devices on resume (rh #578141)
authorDan Williams <dcbw@redhat.com>
Fri, 9 Apr 2010 01:23:43 +0000 (18:23 -0700)
committerDan Williams <dcbw@redhat.com>
Fri, 9 Apr 2010 01:23:43 +0000 (18:23 -0700)
commit38ef723df33d2776345116b6cb78a29493dafbd9
tree35edee70b543b9bd4d6c8183ccfe14efc034ecb0
parentc57c40a621003265a46ed07a558c27baf6e258a1
wifi: fix disabled wifi devices on resume (rh #578141)

RFKILL_TYPE_WLAN is 0, and we while we had allocated the structure
for WIMAX rfkill in the manager's priv->radio_states, we hadn't
filled it in.  That meant that priv->radio_states[RFKILL_TYPE_WIMAX].rtype
was 0, and thus various operations thought that wifi devices
were wimax devices, and since WiMAX rfkill is never updated because
it's not yet used, wifi would never be enabled after resume.
src/nm-manager.c