Skip to contentSkip to conversation

Staging: agnx: switch config_interface to bss_info_changed

PATCH In review Alexander Beregalov 3 participants 8 messages May 12, 2009 – May 19, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: agnx: switch config_interface to bss_info_changed

Fix this build error:
drivers/staging/agnx/pci.c: In function 'agnx_config_interface':
drivers/staging/agnx/pci.c:315: error: dereferencing pointer to incomplete type ..
drivers/staging/agnx/pci.c:424: error: unknown field 'config_interface' specified in initializer

config_interface was removed in 2d0ddec5b2b ("mac80211: unify config_interface and bss_info_changed")

---
 drivers/staging/agnx/pci.c |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)
drivers/staging/agnx/pci.c +9 -6
index 61b15fa..0df7d43 100644
@@ -302,14 +302,18 @@ static int agnx_config(struct ieee80211_hw *dev, u32 changed)
 	return 0;
 }
 
-static int agnx_config_interface(struct ieee80211_hw *dev,
-				 struct ieee80211_vif *vif,
-				 struct ieee80211_if_conf *conf)
+static void agnx_bss_info_changed(struct ieee80211_hw *dev,
+				  struct ieee80211_vif *vif,
+				  struct ieee80211_bss_conf *conf,
+				  u32 changed)
 {
 	struct agnx_priv *priv = dev->priv;
 	void __iomem *ctl = priv->ctl;
 	AGNX_TRACE;
 
+	if (!(changed & BSS_CHANGED_BSSID))
+		return;
+
 	spin_lock(&priv->lock);
 
 	if (memcmp(conf->bssid, priv->bssid, ETH_ALEN)) {
@@ -322,8 +326,7 @@ static int agnx_config_interface(struct ieee80211_hw *dev,
 		agnx_write32(ctl, AGNX_BM_MTSM, 0xff & ~0x1);
 	}
 	spin_unlock(&priv->lock);
-	return 0;
-} /* agnx_config_interface */
+} /* agnx_bss_info_changed */
 
 
 static void agnx_configure_filter(struct ieee80211_hw *dev,
@@ -421,7 +424,7 @@ static struct ieee80211_ops agnx_ops = {
 	.add_interface		= agnx_add_interface,
 	.remove_interface	= agnx_remove_interface,
 	.config			= agnx_config,
-	.config_interface	= agnx_config_interface,
+	.bss_info_changed	= agnx_bss_info_changed,
 	.configure_filter	= agnx_configure_filter,
 	.get_stats		= agnx_get_stats,
 	.get_tx_stats		= agnx_get_tx_stats,
Signature · 1 line
1.6.3
#1 lore raw

2009/5/12 Alexander Beregalov <[email protected]>:

Quoted 11 lines

Fix this build error:
drivers/staging/agnx/pci.c: In function 'agnx_config_interface':
drivers/staging/agnx/pci.c:315: error: dereferencing pointer to incomplete type ..
drivers/staging/agnx/pci.c:424: error: unknown field 'config_interface' specified in initializer

config_interface was removed in 2d0ddec5b2b ("mac80211: unify config_interface and bss_info_changed")

---

stlc45xx has the same problem (drivers/staging/stlc45xx/stlc45xx.c:2360) It is not so simple, I do not know how to fix it.

#2 lore raw
In reply to Alexander Beregalov
Quoted 8 lines · Alexander Beregalov

Fix this build error:
drivers/staging/agnx/pci.c: In function 'agnx_config_interface':
drivers/staging/agnx/pci.c:315: error: dereferencing pointer to incomplete type ..
drivers/staging/agnx/pci.c:424: error: unknown field 'config_interface' specified in initializer

config_interface was removed in 2d0ddec5b2b ("mac80211: unify config_interface and bss_info_changed")

I do not see that patch in Linus's tree. Is it in some other tree (wireless?) and not yet in mainline?

confused,

greg k-h

#3 lore raw

2009/5/12 Greg KH <[email protected]>:

Quoted 7 lines · Alexander Beregalov
Quoted 6 lines

Fix this build error:
drivers/staging/agnx/pci.c: In function 'agnx_config_interface':
drivers/staging/agnx/pci.c:315: error: dereferencing pointer to incomplete type ..
drivers/staging/agnx/pci.c:424: error: unknown field 'config_interface' specified in initializer

Quoted 5 lines
Quoted 2 lines

config_interface was removed in 2d0ddec5b2b ("mac80211: unify config_interface and bss_info_changed")

I do not see that patch in Linus's tree.  Is it in some other tree (wireless?) and not yet in mainline?

Yes, it is in wireless from linux-next.
You asked to send patches based on linux-next, right? Should I always mark patches for staging-next tree as [PATCH -next] ?

#4 lore raw
Quoted 8 lines · Alexander Beregalov

2009/5/12 Greg KH <[email protected]>:

Quoted 7 lines · Alexander Beregalov
Quoted 6 lines

Fix this build error:
drivers/staging/agnx/pci.c: In function 'agnx_config_interface':
drivers/staging/agnx/pci.c:315: error: dereferencing pointer to incomplete type ..
drivers/staging/agnx/pci.c:424: error: unknown field 'config_interface' specified in initializer

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

config_interface was removed in 2d0ddec5b2b ("mac80211: unify config_interface and bss_info_changed")

I do not see that patch in Linus's tree.  Is it in some other tree (wireless?) and not yet in mainline?

Yes, it is in wireless from linux-next.
You asked to send patches based on linux-next, right? Should I always mark patches for staging-next tree as [PATCH -next] ?

Hm, yes, -staging patches need to be against -next, but I have to be able to build these somehow on my own without the wireless tree...

I think something like this might better go through the wireless tree as it depends on changes that happen there. Sound good to you?

If so, please send them to the wireless maintainer.

thanks,

greg k-h

#5 lore raw

2009/5/12 Greg KH <[email protected]>:

Quoted 18 lines · Alexander Beregalov
Quoted 8 lines

2009/5/12 Greg KH <[email protected]>:

Quoted 7 lines · Alexander Beregalov
Quoted 6 lines

Fix this build error:
drivers/staging/agnx/pci.c: In function 'agnx_config_interface':
drivers/staging/agnx/pci.c:315: error: dereferencing pointer to incomplete type ..
drivers/staging/agnx/pci.c:424: error: unknown field 'config_interface' specified in initializer

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

config_interface was removed in 2d0ddec5b2b ("mac80211: unify config_interface and bss_info_changed")

I do not see that patch in Linus's tree.  Is it in some other tree (wireless?) and not yet in mainline?

Yes, it is in wireless from linux-next.
You asked to send patches based on linux-next, right? Should I always mark patches for staging-next tree as [PATCH -next] ?

Quoted 5 lines

Hm, yes, -staging patches need to be against -next, but I have to be able to build these somehow on my own without the wireless tree...

I think something like this might better go through the wireless tree as it depends on changes that happen there.  Sound good to you?

Ok, thanks Greg.

Quoted 1 line

If so, please send them to the wireless maintainer.

John, will you apply it?

#6 lore raw

2009/5/13 Alexander Beregalov <[email protected]>:

Quoted 22 lines

2009/5/12 Greg KH <[email protected]>:

Quoted 21 lines · Alexander Beregalov
Quoted 8 lines

2009/5/12 Greg KH <[email protected]>:

Quoted 7 lines · Alexander Beregalov
Quoted 6 lines

Fix this build error:
drivers/staging/agnx/pci.c: In function 'agnx_config_interface':
drivers/staging/agnx/pci.c:315: error: dereferencing pointer to incomplete type ..
drivers/staging/agnx/pci.c:424: error: unknown field 'config_interface' specified in initializer

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

config_interface was removed in 2d0ddec5b2b ("mac80211: unify config_interface and bss_info_changed")

I do not see that patch in Linus's tree.  Is it in some other tree (wireless?) and not yet in mainline?

Yes, it is in wireless from linux-next.
You asked to send patches based on linux-next, right? Should I always mark patches for staging-next tree as [PATCH -next] ?

Hm, yes, -staging patches need to be against -next, but I have to be able to build these somehow on my own without the wireless tree...

Quoted 6 lines
Quoted 2 lines

I think something like this might better go through the wireless tree as it depends on changes that happen there.  Sound good to you?

Ok, thanks Greg.

Quoted 1 line

If so, please send them to the wireless maintainer.

John, will you apply it?

John?

#7 lore raw
Quoted 23 lines · Alexander Beregalov

2009/5/13 Alexander Beregalov <[email protected]>:

Quoted 22 lines

2009/5/12 Greg KH <[email protected]>:

Quoted 21 lines · Alexander Beregalov
Quoted 8 lines

2009/5/12 Greg KH <[email protected]>:

Quoted 7 lines · Alexander Beregalov
Quoted 6 lines

Fix this build error:
drivers/staging/agnx/pci.c: In function 'agnx_config_interface':
drivers/staging/agnx/pci.c:315: error: dereferencing pointer to incomplete type ..
drivers/staging/agnx/pci.c:424: error: unknown field 'config_interface' specified in initializer

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

config_interface was removed in 2d0ddec5b2b ("mac80211: unify config_interface and bss_info_changed")

I do not see that patch in Linus's tree.  Is it in some other tree (wireless?) and not yet in mainline?

Yes, it is in wireless from linux-next.
You asked to send patches based on linux-next, right? Should I always mark patches for staging-next tree as [PATCH -next] ?

Hm, yes, -staging patches need to be against -next, but I have to be able to build these somehow on my own without the wireless tree...

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

I think something like this might better go through the wireless tree as it depends on changes that happen there.  Sound good to you?

Ok, thanks Greg.

Quoted 1 line

If so, please send them to the wireless maintainer.

John, will you apply it?

John?

*grumble*

I guess I will...

John

Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.