public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb•auug.org.au>
To: David Miller <davem@davemloft•net>
Cc: linux-next@vger•kernel.org,
	Jouni Malinen <jouni.malinen@atheros•com>,
	Jasper Bryant-Greene <jasper@amiton•co.nz>,
	"John W. Linville" <linville@tuxdriver•com>
Subject: linux-next: manual merge of the net tree
Date: Thu, 28 Aug 2008 13:55:14 +1000	[thread overview]
Message-ID: <20080828135514.2d046f29.sfr@canb.auug.org.au> (raw)

Hi Dave,

Today's linux-next merge of the net tree got a conflict in
net/mac80211/mlme.c between commit
087d833e5a9f67ba933cb32eaf5a2279c1a5b47c ("mac80211: Use IWEVASSOCREQIE
instead of IWEVCUSTOM") from the net-current tree and commit
f698d856f65c3fea091cc303a135967965c5b880 ("replace net_device arguments
with ieee80211_{local,sub_if_data} as appropriate") from the net tree.

The former moved some code that the latter modified.  I fixed it up
(see below) and can carry the fix.
-- 
Cheers,
Stephen Rothwell                    sfr@canb•auug.org.au
http://www.canb.auug.org.au/~sfr/

diff --cc net/mac80211/mlme.c
index 9bb68c6,8499979..0000000
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@@ -475,24 -474,54 +474,24 @@@ int ieee80211_ht_addt_info_ie_to_ht_bss
  	return 0;
  }
  
- static void ieee80211_sta_send_associnfo(struct net_device *dev,
+ static void ieee80211_sta_send_associnfo(struct ieee80211_sub_if_data *sdata,
  					 struct ieee80211_if_sta *ifsta)
  {
 -	char *buf;
 -	size_t len;
 -	int i;
  	union iwreq_data wrqu;
  
 -	if (!ifsta->assocreq_ies && !ifsta->assocresp_ies)
 -		return;
 -
 -	buf = kmalloc(50 + 2 * (ifsta->assocreq_ies_len +
 -				ifsta->assocresp_ies_len), GFP_KERNEL);
 -	if (!buf)
 -		return;
 -
 -	len = sprintf(buf, "ASSOCINFO(");
  	if (ifsta->assocreq_ies) {
 -		len += sprintf(buf + len, "ReqIEs=");
 -		for (i = 0; i < ifsta->assocreq_ies_len; i++) {
 -			len += sprintf(buf + len, "%02x",
 -				       ifsta->assocreq_ies[i]);
 -		}
 +		memset(&wrqu, 0, sizeof(wrqu));
 +		wrqu.data.length = ifsta->assocreq_ies_len;
- 		wireless_send_event(dev, IWEVASSOCREQIE, &wrqu,
++		wireless_send_event(sdata->dev, IWEVASSOCREQIE, &wrqu,
 +				    ifsta->assocreq_ies);
  	}
 -	if (ifsta->assocresp_ies) {
 -		if (ifsta->assocreq_ies)
 -			len += sprintf(buf + len, " ");
 -		len += sprintf(buf + len, "RespIEs=");
 -		for (i = 0; i < ifsta->assocresp_ies_len; i++) {
 -			len += sprintf(buf + len, "%02x",
 -				       ifsta->assocresp_ies[i]);
 -		}
 -	}
 -	len += sprintf(buf + len, ")");
  
 -	if (len > IW_CUSTOM_MAX) {
 -		len = sprintf(buf, "ASSOCRESPIE=");
 -		for (i = 0; i < ifsta->assocresp_ies_len; i++) {
 -			len += sprintf(buf + len, "%02x",
 -				       ifsta->assocresp_ies[i]);
 -		}
 +	if (ifsta->assocresp_ies) {
 +		memset(&wrqu, 0, sizeof(wrqu));
 +		wrqu.data.length = ifsta->assocresp_ies_len;
- 		wireless_send_event(dev, IWEVASSOCRESPIE, &wrqu,
++		wireless_send_event(sdata->dev, IWEVASSOCRESPIE, &wrqu,
 +				    ifsta->assocresp_ies);
  	}
 -
 -	memset(&wrqu, 0, sizeof(wrqu));
 -	wrqu.data.length = len;
 -	wireless_send_event(sdata->dev, IWEVCUSTOM, &wrqu, buf);
 -
 -	kfree(buf);
  }
  
  
@@@ -2838,13 -2876,13 +2846,13 @@@ static void ieee80211_rx_bss_info(struc
  		       jiffies);
  #endif /* CONFIG_MAC80211_IBSS_DEBUG */
  		if (beacon_timestamp > rx_timestamp) {
 -#ifndef CONFIG_MAC80211_IBSS_DEBUG
 +#ifdef CONFIG_MAC80211_IBSS_DEBUG
  			printk(KERN_DEBUG "%s: beacon TSF higher than "
  			       "local TSF - IBSS merge with BSSID %s\n",
- 			       dev->name, print_mac(mac, mgmt->bssid));
+ 			       sdata->dev->name, print_mac(mac, mgmt->bssid));
  #endif
- 			ieee80211_sta_join_ibss(dev, &sdata->u.sta, bss);
- 			ieee80211_ibss_add_sta(dev, NULL,
+ 			ieee80211_sta_join_ibss(sdata, &sdata->u.sta, bss);
+ 			ieee80211_ibss_add_sta(sdata, NULL,
  					       mgmt->bssid, mgmt->sa,
  					       BIT(rx_status->rate_idx));
  		}

             reply	other threads:[~2008-08-28  3:55 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-28  3:55 Stephen Rothwell [this message]
2008-08-28  8:15 ` linux-next: manual merge of the net tree David Miller
  -- strict thread matches above, loose matches on Subject: below --
2008-12-23 23:19 Stephen Rothwell
2008-12-24  2:15 ` David Miller
2008-12-24 14:41 ` Cyrill Gorcunov
2008-12-23 23:15 Stephen Rothwell
2008-12-24  2:16 ` David Miller
2008-12-15  3:44 Stephen Rothwell
2008-12-15  6:59 ` David Miller
2008-12-09  2:21 Stephen Rothwell
2008-12-09 22:17 ` J. Bruce Fields
2008-12-09 23:22   ` David Miller
2008-12-09 23:41   ` Stephen Rothwell
2008-12-09  2:13 Stephen Rothwell
2008-12-08  3:48 Stephen Rothwell
2008-12-08  7:26 ` David Miller
2008-12-29  3:53   ` Stephen Rothwell
2008-12-29  4:00     ` David Miller
2008-12-29  4:14       ` Stephen Rothwell
2008-12-01  3:26 Stephen Rothwell
2008-12-01  7:20 ` David Miller
2008-12-01 17:06 ` Mike Frysinger
2008-12-01  3:16 Stephen Rothwell
2008-11-27  3:40 Stephen Rothwell
2008-11-27  8:03 ` David Miller
2008-11-26  6:42 Stephen Rothwell
2008-11-26  6:34 Stephen Rothwell
2008-11-21  2:33 Stephen Rothwell
2008-11-21  2:29 Stephen Rothwell
2008-11-21  4:11 ` David Miller
2008-11-21  4:22   ` Stephen Rothwell
2008-11-20  2:10 Stephen Rothwell
2008-11-18  0:51 Stephen Rothwell
2008-11-12  2:59 Stephen Rothwell
2008-11-12  3:07 ` John W. Linville
2008-11-10  3:02 Stephen Rothwell
2008-11-11  7:00 ` David Miller
2008-11-11  8:24   ` Stephen Rothwell
2008-11-11  9:21     ` David Miller
2008-11-11 23:17       ` Stephen Rothwell
2008-11-07  4:33 Stephen Rothwell
2008-11-07  4:24 Stephen Rothwell
2008-11-07  4:47 ` David Miller
2008-10-29  3:11 Stephen Rothwell
2008-10-29  4:53 ` David Miller
2008-10-29 12:34   ` John W. Linville
2008-10-29 20:20     ` David Miller
2008-07-16  7:00 Stephen Rothwell
2008-07-16  6:56 Stephen Rothwell
2008-07-10  4:02 Stephen Rothwell
2008-07-10 12:11 ` Patrick McHardy
2008-07-08  4:27 Stephen Rothwell
2008-07-08  6:03 ` Tobias Diedrich
2008-07-08 14:23   ` Rafael J. Wysocki
2008-07-08  4:16 Stephen Rothwell
2008-07-08 12:22 ` John W. Linville
2008-07-08 13:00   ` Stephen Rothwell
2008-07-08  4:10 Stephen Rothwell
2008-07-08  5:14 ` David Miller
2008-07-08  5:44 ` David Miller
2008-07-08  6:15   ` Stephen Rothwell
2008-07-03  4:08 Stephen Rothwell
2008-07-03  4:14 ` David Miller
2008-07-03  3:56 Stephen Rothwell
2008-07-03  4:11 ` Stephen Rothwell
2008-07-03  4:13 ` David Miller
2008-07-01  7:19 Stephen Rothwell
2008-07-01  9:33 ` David Miller
2008-07-01 15:09 ` Stephen Rothwell
2008-07-01  7:11 Stephen Rothwell
2008-06-19  3:04 Stephen Rothwell
2008-06-19  5:01 ` David Miller
2008-06-19  5:49   ` Stephen Rothwell
2008-06-13 21:56 linux-next: pending wireless/wireless-current merge conflict John W. Linville
2008-06-25 18:04 ` John W. Linville
2008-06-26  5:40   ` linux-next: manual merge of the net tree Stephen Rothwell
2008-06-26  5:54     ` David Miller
2008-06-26  6:58       ` Stephen Rothwell
2008-06-26  9:08         ` David Miller

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=20080828135514.2d046f29.sfr@canb.auug.org.au \
    --to=sfr@canb$(echo .)auug.org.au \
    --cc=davem@davemloft$(echo .)net \
    --cc=jasper@amiton$(echo .)co.nz \
    --cc=jouni.malinen@atheros$(echo .)com \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=linville@tuxdriver$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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