public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging/wlan-ng: fix compile error updating to new NL80211
@ 2010-07-01 12:18 Javier Martinez Canillas
  2010-07-01 15:59 ` [PATCH] staging/wlan-ng: fix compile error updating to new Karl and Karen Relton
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Javier Martinez Canillas @ 2010-07-01 12:18 UTC (permalink / raw)
  To: kernel-janitors

Hello, 

A few days ago I send this patch and didn't get any feedback. So I'm resending it.

In linux-next I got a compile error in wlan-ng:

CC [M]  drivers/staging/wlan-ng/p80211netdev.o
In file included from drivers/staging/wlan-ng/p80211netdev.c:91:
drivers/staging/wlan-ng/cfg80211.c:602: warning: ‘enum tx_power_setting’ declared inside parameter list
drivers/staging/wlan-ng/cfg80211.c:602: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/staging/wlan-ng/cfg80211.c:602: error: parameter 2 (‘type’) has incomplete type
drivers/staging/wlan-ng/cfg80211.c: In function ‘prism2_set_tx_power’:
drivers/staging/wlan-ng/cfg80211.c:609: error: ‘TX_POWER_AUTOMATIC’ undeclared (first use in this function)
drivers/staging/wlan-ng/cfg80211.c:609: error: (Each undeclared identifier is reported only once
drivers/staging/wlan-ng/cfg80211.c:609: error: for each function it appears in.)
make[1]: *** [drivers/staging/wlan-ng/p80211netdev.o] Error 1
make: *** [_module_drivers/staging/wlan-ng] Error 2

The problem is that the 802.11 netlink interface changed and the driver was not updated

This patch solves the issue

Thanks a lot,


Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
---
 drivers/staging/wlan-ng/cfg80211.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c
index b0792f7..9803b28 100644
--- a/drivers/staging/wlan-ng/cfg80211.c
+++ b/drivers/staging/wlan-ng/cfg80211.c
@@ -599,14 +599,14 @@ int prism2_leave_ibss(struct wiphy *wiphy, struct net_device *dev) {
 
 
 int prism2_set_tx_power(struct wiphy *wiphy,
-			enum tx_power_setting type, int dbm) {
+			enum nl80211_tx_power_setting type, int dbm) {
 	struct prism2_wiphy_private *priv = wiphy_priv(wiphy);
 	wlandevice_t *wlandev = priv->wlandev;
 	u32 data;
 	int result;
 	int err = 0;
 
-	if (type = TX_POWER_AUTOMATIC)
+	if (type = NL80211_TX_POWER_AUTOMATIC)
 		data = 30;
 	else
 		data = dbm;
-- 
1.7.0.4





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging/wlan-ng: fix compile error updating to new
  2010-07-01 12:18 [PATCH] staging/wlan-ng: fix compile error updating to new NL80211 Javier Martinez Canillas
@ 2010-07-01 15:59 ` Karl and Karen Relton
  2010-08-31 18:12 ` Greg KH
  2010-08-31 18:40 ` Javier Martinez Canillas
  2 siblings, 0 replies; 4+ messages in thread
From: Karl and Karen Relton @ 2010-07-01 15:59 UTC (permalink / raw)
  To: kernel-janitors

On Thu, 2010-07-01 at 08:18 -0400, Javier Martinez Canillas wrote:
> Hello, 
> 
> A few days ago I send this patch and didn't get any feedback. So I'm resending it.
> 
> In linux-next I got a compile error in wlan-ng:
> 
> CC [M]  drivers/staging/wlan-ng/p80211netdev.o
> In file included from drivers/staging/wlan-ng/p80211netdev.c:91:
> drivers/staging/wlan-ng/cfg80211.c:602: warning: ‘enum tx_power_setting’ declared inside parameter list
> drivers/staging/wlan-ng/cfg80211.c:602: warning: its scope is only this definition or declaration, which is probably not what you want
> drivers/staging/wlan-ng/cfg80211.c:602: error: parameter 2 (‘type’) has incomplete type
> drivers/staging/wlan-ng/cfg80211.c: In function ‘prism2_set_tx_power’:
> drivers/staging/wlan-ng/cfg80211.c:609: error: ‘TX_POWER_AUTOMATIC’ undeclared (first use in this function)
> drivers/staging/wlan-ng/cfg80211.c:609: error: (Each undeclared identifier is reported only once
> drivers/staging/wlan-ng/cfg80211.c:609: error: for each function it appears in.)
> make[1]: *** [drivers/staging/wlan-ng/p80211netdev.o] Error 1
> make: *** [_module_drivers/staging/wlan-ng] Error 2
> 
> The problem is that the 802.11 netlink interface changed and the driver was not updated
> 
> This patch solves the issue
> 
> Thanks a lot,
> 
> 
> Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
> ---
>  drivers/staging/wlan-ng/cfg80211.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c
> index b0792f7..9803b28 100644
> --- a/drivers/staging/wlan-ng/cfg80211.c
> +++ b/drivers/staging/wlan-ng/cfg80211.c
> @@ -599,14 +599,14 @@ int prism2_leave_ibss(struct wiphy *wiphy, struct net_device *dev) {
>  
> 
>  int prism2_set_tx_power(struct wiphy *wiphy,
> -			enum tx_power_setting type, int dbm) {
> +			enum nl80211_tx_power_setting type, int dbm) {
>  	struct prism2_wiphy_private *priv = wiphy_priv(wiphy);
>  	wlandevice_t *wlandev = priv->wlandev;
>  	u32 data;
>  	int result;
>  	int err = 0;
>  
> -	if (type = TX_POWER_AUTOMATIC)
> +	if (type = NL80211_TX_POWER_AUTOMATIC)
>  		data = 30;
>  	else
>  		data = dbm;

ACK

-- 
----------------------------------------------------------------
Karen & Karl Relton                ka_ka@reltons.freeserve.co.uk



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging/wlan-ng: fix compile error updating to new
  2010-07-01 12:18 [PATCH] staging/wlan-ng: fix compile error updating to new NL80211 Javier Martinez Canillas
  2010-07-01 15:59 ` [PATCH] staging/wlan-ng: fix compile error updating to new Karl and Karen Relton
@ 2010-08-31 18:12 ` Greg KH
  2010-08-31 18:40 ` Javier Martinez Canillas
  2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2010-08-31 18:12 UTC (permalink / raw)
  To: kernel-janitors

On Thu, Jul 01, 2010 at 08:18:43AM -0400, Javier Martinez Canillas wrote:
> Hello, 
> 
> A few days ago I send this patch and didn't get any feedback. So I'm resending it.
> 
> In linux-next I got a compile error in wlan-ng:
> 
> CC [M]  drivers/staging/wlan-ng/p80211netdev.o
> In file included from drivers/staging/wlan-ng/p80211netdev.c:91:
> drivers/staging/wlan-ng/cfg80211.c:602: warning: ‘enum tx_power_setting’ declared inside parameter list
> drivers/staging/wlan-ng/cfg80211.c:602: warning: its scope is only this definition or declaration, which is probably not what you want
> drivers/staging/wlan-ng/cfg80211.c:602: error: parameter 2 (‘type’) has incomplete type
> drivers/staging/wlan-ng/cfg80211.c: In function ‘prism2_set_tx_power’:
> drivers/staging/wlan-ng/cfg80211.c:609: error: ‘TX_POWER_AUTOMATIC’ undeclared (first use in this function)
> drivers/staging/wlan-ng/cfg80211.c:609: error: (Each undeclared identifier is reported only once
> drivers/staging/wlan-ng/cfg80211.c:609: error: for each function it appears in.)
> make[1]: *** [drivers/staging/wlan-ng/p80211netdev.o] Error 1
> make: *** [_module_drivers/staging/wlan-ng] Error 2
> 
> The problem is that the 802.11 netlink interface changed and the driver was not updated

I don't see this error anymore in Linus's tree, is it still needed?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging/wlan-ng: fix compile error updating to new
  2010-07-01 12:18 [PATCH] staging/wlan-ng: fix compile error updating to new NL80211 Javier Martinez Canillas
  2010-07-01 15:59 ` [PATCH] staging/wlan-ng: fix compile error updating to new Karl and Karen Relton
  2010-08-31 18:12 ` Greg KH
@ 2010-08-31 18:40 ` Javier Martinez Canillas
  2 siblings, 0 replies; 4+ messages in thread
From: Javier Martinez Canillas @ 2010-08-31 18:40 UTC (permalink / raw)
  To: kernel-janitors

>>
>> The problem is that the 802.11 netlink interface changed and the driver was not updated
>
> I don't see this error anymore in Linus's tree, is it still needed?
>

No, the patch is not needed anymore.

Thanks a lot

> thanks,
>
> greg k-h
>

Best regards,

-----------------------------------------
Javier Martínez Canillas
+595 981 88 66 58
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-31 18:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-01 12:18 [PATCH] staging/wlan-ng: fix compile error updating to new NL80211 Javier Martinez Canillas
2010-07-01 15:59 ` [PATCH] staging/wlan-ng: fix compile error updating to new Karl and Karen Relton
2010-08-31 18:12 ` Greg KH
2010-08-31 18:40 ` Javier Martinez Canillas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox