mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dave Kilroy <kilroyd@googlemail.com>
To: linux-kernel@vger.kernel.org
Cc: greg@kroah.com, pe1dnn@amsat.org
Subject: Re: [PATCH 3/7] staging: wlags49_h2: Remove useless IWE_STREAM_ADD_YYY defines
Date: Sun, 09 Oct 2011 12:26:01 +0100	[thread overview]
Message-ID: <4E9184C9.8050006@gmail.com> (raw)
In-Reply-To: <1318158697-15979-4-git-send-email-kilroyd@googlemail.com>

LKML didn't like the original title of this patch and rejected the email.

Greg: please let me know if you want me to resend this with an 
'acceptable' title, otherwise you might consider removing the treble X 
from the patch title.


Regards,

Dave

---

On 09/10/2011 12:11, David Kilroy wrote:
> These macros don't map to anything different. Just remove them.
>
> Signed-off-by: David Kilroy<kilroyd@googlemail.com>
> ---
>   drivers/staging/wlags49_h2/wl_wext.c |   33 ++++++++++++++-------------------
>   1 files changed, 14 insertions(+), 19 deletions(-)
>
> diff --git a/drivers/staging/wlags49_h2/wl_wext.c b/drivers/staging/wlags49_h2/wl_wext.c
> index 89563da..c392fd8 100644
> --- a/drivers/staging/wlags49_h2/wl_wext.c
> +++ b/drivers/staging/wlags49_h2/wl_wext.c
> @@ -75,15 +75,6 @@
>   #include<wl_wext.h>
>   #include<wl_priv.h>
>
> -
> -
> -#define IWE_STREAM_ADD_EVENT(info, buf, end, iwe, len) \
> -    iwe_stream_add_event(info, buf, end, iwe, len)
> -#define IWE_STREAM_ADD_POINT(info, buf, end, iwe, msg) \
> -    iwe_stream_add_point(info, buf, end, iwe, msg)
> -
> -
> -
>   /*******************************************************************************
>    * global definitions
>    ******************************************************************************/
> @@ -2681,8 +2672,8 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf
>   		memcpy( iwe.u.ap_addr.sa_data, probe_resp->BSSID, ETH_ALEN);
>   		iwe.len                 = IW_EV_ADDR_LEN;
>
> -		buf = IWE_STREAM_ADD_EVENT(info, buf, buf_end,&iwe, IW_EV_ADDR_LEN);
> -
> +		buf = iwe_stream_add_event(info, buf, buf_end,
> +					&iwe, IW_EV_ADDR_LEN);
>
>   		/* Use the mode to indicate if it's a station or AP */
>   		/* Won't always be an AP if in IBSS mode */
> @@ -2698,8 +2689,8 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf
>
>   		iwe.len = IW_EV_UINT_LEN;
>
> -		buf = IWE_STREAM_ADD_EVENT(info, buf, buf_end,&iwe, IW_EV_UINT_LEN);
> -
> +		buf = iwe_stream_add_event(info, buf, buf_end,
> +					&iwe, IW_EV_UINT_LEN);
>
>   		/* Any quality information */
>   		memset(&iwe, 0, sizeof(iwe));
> @@ -2711,7 +2702,8 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf
>   		iwe.u.qual.updated  = lp->probe_results.scan_complete | IW_QUAL_DBM;
>   		iwe.len             = IW_EV_QUAL_LEN;
>
> -		buf = IWE_STREAM_ADD_EVENT(info, buf, buf_end,&iwe, IW_EV_QUAL_LEN);
> +		buf = iwe_stream_add_event(info, buf, buf_end,
> +					&iwe, IW_EV_QUAL_LEN);
>
>
>   		/* ESSID information */
> @@ -2722,7 +2714,8 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf
>   			iwe.u.data.length = probe_resp->rawData[1];
>   			iwe.u.data.flags = 1;
>
> -			buf = IWE_STREAM_ADD_POINT(info, buf, buf_end,&iwe,&probe_resp->rawData[2]);
> +			buf = iwe_stream_add_point(info, buf, buf_end,
> +					&iwe,&probe_resp->rawData[2]);
>   		}
>
>
> @@ -2740,7 +2733,7 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf
>   			iwe.u.data.flags |= IW_ENCODE_DISABLED;
>   		}
>
> -		buf = IWE_STREAM_ADD_POINT(info, buf, buf_end,&iwe, NULL);
> +		buf = iwe_stream_add_point(info, buf, buf_end,&iwe, NULL);
>
>
>   		/* Frequency Info */
> @@ -2751,7 +2744,8 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf
>   		iwe.u.freq.m = wl_parse_ds_ie( probe_resp );
>   		iwe.u.freq.e = 0;
>
> -		buf = IWE_STREAM_ADD_EVENT(info, buf, buf_end,&iwe, IW_EV_FREQ_LEN);
> +		buf = iwe_stream_add_event(info, buf, buf_end,
> +					&iwe, IW_EV_FREQ_LEN);
>
>
>   		/* Custom info (Beacon Interval) */
> @@ -2762,7 +2756,7 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf
>   		sprintf( msg, "beacon_interval=%d", probe_resp->beaconInterval );
>   		iwe.u.data.length = strlen( msg );
>
> -		buf = IWE_STREAM_ADD_POINT(info, buf, buf_end,&iwe, msg);
> +		buf = iwe_stream_add_point(info, buf, buf_end,&iwe, msg);
>
>
>   		/* Custom info (WPA-IE) */
> @@ -2778,7 +2772,8 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf
>   			sprintf( msg, "wpa_ie=%s", wl_print_wpa_ie( wpa_ie, wpa_ie_len ));
>   			iwe.u.data.length = strlen( msg );
>
> -			buf = IWE_STREAM_ADD_POINT(info, buf, buf_end,&iwe, msg);
> +			buf = iwe_stream_add_point(info, buf, buf_end,
> +						&iwe, msg);
>   		}
>
>   		/* Add other custom info in formatted string format as needed... */


  parent reply	other threads:[~2011-10-09 11:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-09 11:11 [PATCH 0/7] Enable WPA with wlags49_h2 David Kilroy
2011-10-09 11:11 ` [PATCH 1/7] staging: wlags49_h2: Handle sysfs_create_group return correctly David Kilroy
2011-10-09 11:11 ` [PATCH 2/7] staging: wlags49_h2: Enable WPA in the HCF David Kilroy
2011-10-09 11:11 ` [PATCH 4/7] staging: wlags49_h2: Report WPA IE in scan results with IWEVGENIE David Kilroy
2011-10-09 11:11 ` [PATCH 5/7] staging: wlags49_h2: Make key setting more reliable David Kilroy
2011-10-09 11:11 ` [PATCH 6/7] staging: wlags49_h2: Fixup IW_AUTH handling David Kilroy
2011-10-09 11:11 ` [PATCH 7/7] staging: wlags49_h2: Fixup SIOCSIWGENIE David Kilroy
     [not found] ` <1318158697-15979-4-git-send-email-kilroyd@googlemail.com>
2011-10-09 11:26   ` Dave Kilroy [this message]
2011-10-09 16:54     ` [PATCH 3/7] staging: wlags49_h2: Remove useless IWE_STREAM_ADD_YYY defines Greg KH

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=4E9184C9.8050006@gmail.com \
    --to=kilroyd@googlemail.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pe1dnn@amsat.org \
    /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

Powered by JetHome