wpa_supplicant: fix interface combination parsing issues

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39155 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2013-12-21 19:42:45 +00:00
parent c59eec1589
commit e6a85bcd9a
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -3157,10 +3157,12 @@ static int wiphy_info_iface_comb_process
}
if (combination_has_p2p && combination_has_mgd) {
- info->p2p_concurrent = 1;
- info->num_multichan_concurrent =
+ int num_channels =
nla_get_u32(tb_comb[NL80211_IFACE_COMB_NUM_CHANNELS]);
- return 1;
+
+ info->p2p_concurrent = 1;
+ if (info->num_multichan_concurrent < num_channels)
+ info->num_multichan_concurrent = num_channels;
}
return 0;