mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 08:20:08 +01:00
platform/wifi: don't use __u32 type in "nm-wifi-utils-nl80211.c"
Also, use unsignd (guint) variable as index. That is fine, because nla_len() returns a (signed) int.
This commit is contained in:
parent
60e4595101
commit
08bc38cb5c
1 changed files with 3 additions and 4 deletions
|
|
@ -856,11 +856,10 @@ static int nl80211_wiphy_info_handler (struct nl_msg *msg, void *arg)
|
|||
|
||||
/* Read security/encryption support */
|
||||
if (tb[NL80211_ATTR_CIPHER_SUITES]) {
|
||||
int num;
|
||||
int i;
|
||||
__u32 *ciphers = nla_data (tb[NL80211_ATTR_CIPHER_SUITES]);
|
||||
guint32 *ciphers = nla_data (tb[NL80211_ATTR_CIPHER_SUITES]);
|
||||
guint i, num;
|
||||
|
||||
num = nla_len (tb[NL80211_ATTR_CIPHER_SUITES]) / sizeof (__u32);
|
||||
num = nla_len (tb[NL80211_ATTR_CIPHER_SUITES]) / sizeof (guint32);
|
||||
for (i = 0; i < num; i++) {
|
||||
switch (ciphers[i]) {
|
||||
case WLAN_CIPHER_SUITE_WEP40:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue