* [PATCH] mwifiex: simplify ad hoc join capability info
@ 2014-11-11 5:21 James Cameron
2014-11-11 13:05 ` Amitkumar Karwar
0 siblings, 1 reply; 2+ messages in thread
From: James Cameron @ 2014-11-11 5:21 UTC (permalink / raw)
To: linux-wireless, Avinash Patil
While preparing an ad-hoc start command, the capability info bitmap is
needlessly set from the command, and then the ESS bit cleared.
Change to set the bitmap directly without reference to the command.
Signed-off-by: James Cameron <quozl@laptop.org>
---
drivers/net/wireless/mwifiex/join.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/wireless/mwifiex/join.c b/drivers/net/wireless/mwifiex/join.c
index 8d6c259..411a6c2 100644
--- a/drivers/net/wireless/mwifiex/join.c
+++ b/drivers/net/wireless/mwifiex/join.c
@@ -880,9 +880,7 @@ mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv,
/* Set Capability info */
bss_desc->cap_info_bitmap |= WLAN_CAPABILITY_IBSS;
- tmp_cap = le16_to_cpu(adhoc_start->cap_info_bitmap);
- tmp_cap &= ~WLAN_CAPABILITY_ESS;
- tmp_cap |= WLAN_CAPABILITY_IBSS;
+ tmp_cap = WLAN_CAPABILITY_IBSS;
/* Set up privacy in bss_desc */
if (priv->sec_info.encryption_mode) {
--
1.9.1
--
James Cameron
http://quozl.linux.org.au/
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH] mwifiex: simplify ad hoc join capability info
2014-11-11 5:21 [PATCH] mwifiex: simplify ad hoc join capability info James Cameron
@ 2014-11-11 13:05 ` Amitkumar Karwar
0 siblings, 0 replies; 2+ messages in thread
From: Amitkumar Karwar @ 2014-11-11 13:05 UTC (permalink / raw)
To: James Cameron, linux-wireless@vger.kernel.org, Avinash Patil
Hi James,
>While preparing an ad-hoc start command, the capability info bitmap is
>needlessly set from the command, and then the ESS bit cleared.
>
>Change to set the bitmap directly without reference to the command.
>
>Signed-off-by: James Cameron <quozl@laptop.org>
Acked-by: Amitkumar Karwar <akarwar@marvell.com>
Thanks,
Amitkumar
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-11 13:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-11 5:21 [PATCH] mwifiex: simplify ad hoc join capability info James Cameron
2014-11-11 13:05 ` Amitkumar Karwar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).