diff mbox

[v2] mwifiex: do not support change AP interface to station mode

Message ID 1511265815-13087-1-git-send-email-huxm@marvell.com (mailing list archive)
State Changes Requested
Delegated to: Kalle Valo
Headers show

Commit Message

Xinming Hu Nov. 21, 2017, 12:03 p.m. UTC
Firmware do not support change interface from micro-ap mode to
station mode, forbidden this operation in driver accordingly.

Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Xinming Hu <huxm@marvell.com>
---
v2: remove unnecessary sta/uap combo check(James Cameron)

 drivers/net/wireless/marvell/mwifiex/cfg80211.c | 1 -
 1 file changed, 1 deletion(-)

Comments

James Cameron Nov. 21, 2017, 7:31 p.m. UTC | #1
On Tue, Nov 21, 2017 at 08:03:35PM +0800, Xinming Hu wrote:
> Firmware do not support change interface from micro-ap mode to
> station mode, forbidden this operation in driver accordingly.

"forbidden" should be "forbid", for correct tense.

"in driver" is redundant and can be removed.

"accordingly" is also redundant.

Perhaps "Firmware do not support change interface from micro-ap mode
to station mode, forbid this operation."

> Signed-off-by: Cathy Luo <cluo@marvell.com>
> Signed-off-by: Xinming Hu <huxm@marvell.com>
> ---
> v2: remove unnecessary sta/uap combo check(James Cameron)
> 
>  drivers/net/wireless/marvell/mwifiex/cfg80211.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
> index 6e0d9a9..4d45df8 100644
> --- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c
> +++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
> @@ -1180,7 +1180,6 @@ static int mwifiex_deinit_priv_params(struct mwifiex_private *priv)
>  	case NL80211_IFTYPE_AP:
>  		switch (type) {
>  		case NL80211_IFTYPE_ADHOC:

Change interface type from micro-ap to adhoc is supported?

> -		case NL80211_IFTYPE_STATION:
>  			return mwifiex_change_vif_to_sta_adhoc(dev, curr_iftype,
>  							       type, params);
>  			break;
> -- 
> 1.9.1
>
Xinming Hu Nov. 22, 2017, 6:53 a.m. UTC | #2
Hi James,

> -----Original Message-----

> From: quozl@laptop.org [mailto:quozl@laptop.org]

> Sent: 2017年11月22日 3:31

> To: Xinming Hu <huxm@marvell.com>

> Cc: Linux Wireless <linux-wireless@vger.kernel.org>; Kalle Valo

> <kvalo@codeaurora.org>; Brian Norris <briannorris@chromium.org>; Dmitry

> Torokhov <dtor@google.com>; rajatja@google.com; Zhiyuan Yang

> <yangzy@marvell.com>; Tim Song <songtao@marvell.com>; Cathy Luo

> <cluo@marvell.com>; James Cao <jcao@marvell.com>; Ganapathi Bhat

> <gbhat@marvell.com>; Ellie Reeves <ellierevves@gmail.com>

> Subject: Re: [PATCH v2] mwifiex: do not support change AP interface to station

> mode

> 

> On Tue, Nov 21, 2017 at 08:03:35PM +0800, Xinming Hu wrote:

> > Firmware do not support change interface from micro-ap mode to station

> > mode, forbidden this operation in driver accordingly.

> 

> "forbidden" should be "forbid", for correct tense.

> 

> "in driver" is redundant and can be removed.

> 

> "accordingly" is also redundant.

> 

> Perhaps "Firmware do not support change interface from micro-ap mode to

> station mode, forbid this operation."

> 


Ok, it looks better.

> > Signed-off-by: Cathy Luo <cluo@marvell.com>

> > Signed-off-by: Xinming Hu <huxm@marvell.com>

> > ---

> > v2: remove unnecessary sta/uap combo check(James Cameron)

> >

> >  drivers/net/wireless/marvell/mwifiex/cfg80211.c | 1 -

> >  1 file changed, 1 deletion(-)

> >

> > diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c

> > b/drivers/net/wireless/marvell/mwifiex/cfg80211.c

> > index 6e0d9a9..4d45df8 100644

> > --- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c

> > +++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c

> > @@ -1180,7 +1180,6 @@ static int mwifiex_deinit_priv_params(struct

> mwifiex_private *priv)

> >  	case NL80211_IFTYPE_AP:

> >  		switch (type) {

> >  		case NL80211_IFTYPE_ADHOC:

> 

> Change interface type from micro-ap to adhoc is supported?


Yes, it is supported in FW.

> 

> > -		case NL80211_IFTYPE_STATION:

> >  			return mwifiex_change_vif_to_sta_adhoc(dev, curr_iftype,

> >  							       type, params);

> >  			break;

> > --

> > 1.9.1

> >

> 

> --

> James Cameron

> http://quozl.netrek.org/
diff mbox

Patch

diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
index 6e0d9a9..4d45df8 100644
--- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c
+++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
@@ -1180,7 +1180,6 @@  static int mwifiex_deinit_priv_params(struct mwifiex_private *priv)
 	case NL80211_IFTYPE_AP:
 		switch (type) {
 		case NL80211_IFTYPE_ADHOC:
-		case NL80211_IFTYPE_STATION:
 			return mwifiex_change_vif_to_sta_adhoc(dev, curr_iftype,
 							       type, params);
 			break;