Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.6, 5.15.9
-
None
-
Boot2Qt 5.15.9/Yocto Zeus/iMX8Mini SOM from MSC
-
-
b118417cb (5.15)
Description
The supported security protocols of a Wifi service reported by QNetworkSettingsWireless::supportsSecurity are not reliable. They change randomly in environments with a lot of Wifi services.
Root cause:
- The security protocols of an Wifi service are saved in the class QNetworkSettingsWireless in the member variable m_securityFlags
- They are saved assigned by bitwise OR in QNetworkSettingsWireless::setSecurity
- The problem is that the m_securityFlags variable is not initialized in the constructor and therefore when checked via bitwise OR return unpredictable values.
Fix:
Initialize m_securityFlags to 0 in the constructor of QNetworkSettingsWireless
In addition the other member variables of QNetworkSettingsWireless should be also initialized, e.g. m_hidden=false, m_signalStrength=0, m_isOutOfRange=false