diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2015-12-09 10:29:15 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2015-12-09 11:09:48 +0100 |
commit | 158c63eb2cd0eaee977f2a535f6e6b74a3abff2e (patch) | |
tree | a25101f7ddca3d52a62525a22be2f4b4e2179e10 /src/devices/nm-device.h | |
parent | 3e5fea9820bfab30799f5205bd5746efb95797fe (diff) | |
download | NetworkManager-158c63eb2cd0eaee977f2a535f6e6b74a3abff2e.tar.gz |
device: move initialization of ifindex to constructor()
Device subclasses (for example NMDeviceWifi) can use the ifindex in
their constructor(), but the value now is set later in
parent class constructed(). This causes the following:
nm_platform_wifi_get_capabilities: assertion 'ifindex > 0' failed
Fix this by initializing ifindex earlier in NMDevice's
constructor(). While at it, remove the
nm_assert (pllink->type != NM_LINK_TYPE_NONE);
assertion, since pllink can be NULL there.
Fixes: 6db04dc20664479fc71f102a536dbf2f4501c5a2
Diffstat (limited to 'src/devices/nm-device.h')
0 files changed, 0 insertions, 0 deletions