All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/8] ap: Fix NULL ap->rares
@ 2020-09-11 19:50 Andrew Zaborowski
  2020-09-11 19:50 ` [PATCH 2/8] ap: Fix setting the basic rate in Supported Rates IE Andrew Zaborowski
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Andrew Zaborowski @ 2020-09-11 19:50 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 991 bytes --]

Make sure ap->rates is non-NULL both with and without no_cck_rates.
---
 src/ap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ap.c b/src/ap.c
index c972cfcb..ae33b461 100644
--- a/src/ap.c
+++ b/src/ap.c
@@ -2074,6 +2074,7 @@ struct ap_state *ap_start(struct netdev *netdev, struct ap_config *config,
 	ap->ciphers = wiphy_select_cipher(wiphy, 0xffff);
 	ap->group_cipher = wiphy_select_cipher(wiphy, 0xffff);
 	ap->beacon_interval = 100;
+	ap->rates = l_uintset_new(200);
 
 	/* TODO: Pick from actual supported rates */
 	if (config->no_cck_rates) {
@@ -2086,7 +2087,6 @@ struct ap_state *ap_start(struct netdev *netdev, struct ap_config *config,
 		l_uintset_put(ap->rates, 96); /* 48 Mbps*/
 		l_uintset_put(ap->rates, 108); /* 54 Mbps*/
 	} else {
-		ap->rates = l_uintset_new(200);
 		l_uintset_put(ap->rates, 2); /* 1 Mbps*/
 		l_uintset_put(ap->rates, 11); /* 5.5 Mbps*/
 		l_uintset_put(ap->rates, 22); /* 11 Mbps*/
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-09-14 16:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-11 19:50 [PATCH 1/8] ap: Fix NULL ap->rares Andrew Zaborowski
2020-09-11 19:50 ` [PATCH 2/8] ap: Fix setting the basic rate in Supported Rates IE Andrew Zaborowski
2020-09-11 19:50 ` [PATCH 3/8] p2putil: Add p2p_get_random_string Andrew Zaborowski
2020-09-11 19:50 ` [PATCH 4/8] p2p: Add GO-side of GO Negotiation (initiator) Andrew Zaborowski
2020-09-11 19:51 ` [PATCH 5/8] p2p: Add GO-side of GO Negotiation (responder) Andrew Zaborowski
2020-09-11 19:51 ` [PATCH 6/8] ap: Pass "ops" struct to ap_start() Andrew Zaborowski
2020-09-11 19:51 ` [PATCH 7/8] ap: Support working without passphrase Andrew Zaborowski
2020-09-14 16:44   ` Denis Kenzior
2020-09-11 19:51 ` [PATCH 8/8] p2p: Start a basic P2P Group after GO Negotiation Andrew Zaborowski
2020-09-14 16:38 ` [PATCH 1/8] ap: Fix NULL ap->rares Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.