Search Linux Wireless

RE: mwifiex: switching from adhoc to 5GHz managed fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andreas,

Please check if this diff file helps to resolve ibss issue.

Thanks,
Avinash.
________________________________________
From: Andreas Fenkart [afenkart@xxxxxxxxx]
Sent: Tuesday, August 12, 2014 4:28 AM
To: Avinash Patil
Cc: linux-wireless@xxxxxxxxxxxxxxx
Subject: Re: mwifiex: switching from adhoc to 5GHz managed fails

Hi Avinash,

2014-08-08 14:51 GMT+02:00 Avinash Patil <patila@xxxxxxxxxxx>:
> Are you setting type back to managed after leaving ibss?
yes

> I quickly tried this in my setup and after setting type to managed before connection to 5GHz AP, association is successful.

15ba2236f3556fc01b9ca91394465152b5ea74b6 Merge
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
9a3c4145af32125c5ee39c0272662b47307a8323 Linux 3.16-rc6

and latest commit in driver/net/wireless/mwifiex:
701a9e619347ac06d59481db14bbc4df99763270 mwifiex: initialize Tx/Rx
info of a packet correctly

Am I missing some patches?

> If I dont set type, I see error from iw itself "operation not supported".
I receive "ASSOC_RESP: failed:"

iw version : 3.13
diff --git a/drivers/net/wireless/mwifiex/sta_ioctl.c b/drivers/net/wireless/mwifiex/sta_ioctl.c
index caae973..8016bc2 100644
--- a/drivers/net/wireless/mwifiex/sta_ioctl.c
+++ b/drivers/net/wireless/mwifiex/sta_ioctl.c
@@ -289,8 +289,11 @@ int mwifiex_bss_start(struct mwifiex_private *priv, struct cfg80211_bss *bss,
 		if (mwifiex_band_to_radio_type(bss_desc->bss_band) ==
 						HostCmd_SCAN_RADIO_TYPE_BG)
 			config_bands = BAND_B | BAND_G | BAND_GN;
-		else
-			config_bands = BAND_A | BAND_AN | BAND_AAC;
+		else {
+			config_bands = BAND_A | BAND_AN;
+			if (adapter->fw_bands & BAND_AAC)
+				config_bands |= BAND_AAC;
+		}
 
 		if (!((config_bands | adapter->fw_bands) & ~adapter->fw_bands))
 			adapter->config_bands = config_bands;

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux