linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Williams <dcbw@redhat.com>
To: Masakazu Mokuno <mokuno@sm.sony.co.jp>
Cc: linux-wireless@vger.kernel.org, geoffrey.levand@am.sony.com,
	Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Subject: Re: [PATCH 3/3] PS3: gelic: Deprecate the private ioctls in the gelic driver
Date: Fri, 30 May 2008 13:54:08 -0400	[thread overview]
Message-ID: <1212170048.8178.33.camel@localhost.localdomain> (raw)
In-Reply-To: <20080530164650.4750.40F06B3A@sm.sony.co.jp>

On Fri, 2008-05-30 at 16:52 +0900, Masakazu Mokuno wrote:
> As the driver has the standard way to handle PSK, deprecate the old
> interface.
> 
> Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp>

Yay, fewer private ioctls == better.

Acked-by: Dan Williams <dcbw@redhat.com>

> ---
>  drivers/net/Kconfig              |   13 +++++++++++++
>  drivers/net/ps3_gelic_wireless.c |    6 ++++++
>  2 files changed, 19 insertions(+)
> 
> --- a/drivers/net/Kconfig
> +++ b/drivers/net/Kconfig
> @@ -2297,6 +2297,19 @@ config GELIC_WIRELESS
>  	  the driver automatically distinguishes the models, you can
>  	  safely enable this option even if you have a wireless-less model.
>  
> +config GELIC_WIRELESS_OLD_PSK_INTERFACE
> +       bool "PS3 Wireless private PSK interface (OBSOLETE)"
> +       depends on GELIC_WIRELESS
> +       help
> +          This option retains the obsolete private interface to pass
> +          the PSK from user space programs to the driver.  The PSK
> +          stands for 'Pre Shared Key' and is used for WPA[2]-PSK
> +          (WPA-Personal) environment.
> +          If WPA[2]-PSK is used and you need to use old programs that
> +          support only this old interface, say Y.  Otherwise N.
> +
> +          If unsure, say N.
> +
>  config GIANFAR
>  	tristate "Gianfar Ethernet"
>  	depends on FSL_SOC
> --- a/drivers/net/ps3_gelic_wireless.c
> +++ b/drivers/net/ps3_gelic_wireless.c
> @@ -1375,6 +1375,7 @@ static int gelic_wl_get_mode(struct net_
>  	return 0;
>  }
>  
> +#ifdef CONFIG_GELIC_WIRELESS_OLD_PSK_INTERFACE
>  /* SIOCIWFIRSTPRIV */
>  static int hex2bin(u8 *str, u8 *bin, unsigned int len)
>  {
> @@ -1479,6 +1480,7 @@ static int gelic_wl_priv_get_psk(struct 
>  	pr_debug("%s:-> %d\n", __func__, data->data.length);
>  	return 0;
>  }
> +#endif
>  
>  /* SIOCGIWNICKN */
>  static int gelic_wl_get_nick(struct net_device *net_dev,
> @@ -2329,6 +2331,7 @@ static const iw_handler gelic_wl_wext_ha
>  	IW_IOCTL(SIOCGIWNICKN)		= gelic_wl_get_nick,
>  };
>  
> +#ifdef CONFIG_GELIC_WIRELESS_OLD_PSK_INTERFACE
>  static struct iw_priv_args gelic_wl_private_args[] =
>  {
>  	{
> @@ -2350,15 +2353,18 @@ static const iw_handler gelic_wl_private
>  	gelic_wl_priv_set_psk,
>  	gelic_wl_priv_get_psk,
>  };
> +#endif
>  
>  static const struct iw_handler_def gelic_wl_wext_handler_def = {
>  	.num_standard		= ARRAY_SIZE(gelic_wl_wext_handler),
>  	.standard		= gelic_wl_wext_handler,
>  	.get_wireless_stats	= gelic_wl_get_wireless_stats,
> +#ifdef CONFIG_GELIC_WIRELESS_OLD_PSK_INTERFACE
>  	.num_private		= ARRAY_SIZE(gelic_wl_private_handler),
>  	.num_private_args	= ARRAY_SIZE(gelic_wl_private_args),
>  	.private		= gelic_wl_private_handler,
>  	.private_args		= gelic_wl_private_args,
> +#endif
>  };
>  
>  static struct net_device *gelic_wl_alloc(struct gelic_card *card)
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


      reply	other threads:[~2008-05-30 17:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-30  7:41 [PATCH 0/3] wireless: Add support for passing PMK to WEXT Masakazu Mokuno
2008-05-30  7:52 ` [PATCH 1/3] WEXT: Add support for passing PMK and capability flags " Masakazu Mokuno
2008-05-30 17:52   ` Dan Williams
2008-05-30  7:52 ` [PATCH 2/3] PS3: gelic: Use the new PMK interface in the gelic driver Masakazu Mokuno
2008-05-30 17:53   ` Dan Williams
2008-06-02  3:59     ` Masakazu Mokuno
2008-05-30  7:52 ` [PATCH 3/3] PS3: gelic: Deprecate the private ioctls " Masakazu Mokuno
2008-05-30 17:54   ` Dan Williams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1212170048.8178.33.camel@localhost.localdomain \
    --to=dcbw@redhat.com \
    --cc=Geert.Uytterhoeven@sonycom.com \
    --cc=geoffrey.levand@am.sony.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mokuno@sm.sony.co.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).