Return-path: Received: from mga14.intel.com ([143.182.124.37]:49723 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752810AbZEULxl (ORCPT ); Thu, 21 May 2009 07:53:41 -0400 From: "Zhu, Yi" To: Johannes Berg CC: "linville@tuxdriver.com" , "linux-wireless@vger.kernel.org" , "Ortiz, Samuel" Date: Thu, 21 May 2009 19:53:17 +0800 Subject: RE: [PATCH 1/2] wireless: move some utility functions from mac80211 to cfg80211 Message-ID: References: <1242872340-27417-1-git-send-email-yi.zhu@intel.com> <1242872340-27417-2-git-send-email-yi.zhu@intel.com> <1242898342.5471.12.camel@johannes.local> In-Reply-To: <1242898342.5471.12.camel@johannes.local> Content-Type: text/plain; charset="gb2312" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: VGhhbmtzIEpvaGFubmVzLiBXaWxsIHNlbmQgb3V0IFYyIHNob3J0bHkuDQoNCi15aQ0KDQo+IC0t LS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IEpvaGFubmVzIEJlcmcgW21haWx0bzpq b2hhbm5lc0BzaXBzb2x1dGlvbnMubmV0XQ0KPiBTZW50OiAyMDA5xOo11MIyMcjVIDE3OjMyDQo+ IFRvOiBaaHUsIFlpDQo+IENjOiBsaW52aWxsZUB0dXhkcml2ZXIuY29tOyBsaW51eC13aXJlbGVz c0B2Z2VyLmtlcm5lbC5vcmc7IE9ydGl6LCBTYW11ZWwNCj4gU3ViamVjdDogUmU6IFtQQVRDSCAx LzJdIHdpcmVsZXNzOiBtb3ZlIHNvbWUgdXRpbGl0eSBmdW5jdGlvbnMgZnJvbSBtYWM4MDIxMQ0K PiB0byBjZmc4MDIxMQ0KPiANCj4gT24gVGh1LCAyMDA5LTA1LTIxIGF0IDEwOjE4ICswODAwLCBa aHUgWWkgd3JvdGU6DQo+IA0KPiA+IC0tLSBhL2luY2x1ZGUvbmV0L2NmZzgwMjExLmgNCj4gPiAr KysgYi9p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