Fix conversion of AccessPoint flags to capabilities
ClosedPublic

Authored by fvogt on Mar 3 2018, 6:41 PM.

Details

Summary

The value of Flags is a set of independant bits, so using a switch-case here
does not work.

For some reason NM 1.10.4 returns 3 as Flags, which makes this return None.

Test Plan

plasma-nm showed "unknown security type" before, now it's "WPA2-PSK" again.

Diff Detail

Repository
R282 NetworkManagerQt
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
fvogt created this revision.Mar 3 2018, 6:41 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptMar 3 2018, 6:41 PM
fvogt requested review of this revision.Mar 3 2018, 6:41 PM
fvogt updated this revision to Diff 28512.

Use camelCase

jgrulich accepted this revision.Mar 5 2018, 6:56 AM
This revision is now accepted and ready to land.Mar 5 2018, 6:56 AM
This revision was automatically updated to reflect the committed changes.