if (tb_msg[NL80211_ATTR_INTERFACE_COMBINATIONS]) {
struct nlattr *nl_combi;
int rem_combi;
-
- printf("\tvalid interface combinations:\n");
+ bool have_combinations = false;
nla_for_each_nested(nl_combi, tb_msg[NL80211_ATTR_INTERFACE_COMBINATIONS], rem_combi) {
static struct nla_policy iface_combination_policy[NUM_NL80211_IFACE_COMB] = {
int err, rem_limit;
bool comma = false;
+ if (!have_combinations) {
+ printf("\tvalid interface combinations:\n");
+ have_combinations = true;
+ }
+
printf("\t\t * ");
err = nla_parse_nested(tb_comb, MAX_NL80211_IFACE_COMB,
broken_combination:
;
}
+
+ if (!have_combinations)
+ printf("\tinterface combinations are not supported\n");
}
if (tb_msg[NL80211_ATTR_SUPPORTED_COMMANDS]) {