mac80211: fix build failure
Johannes Berg
maintainerPATCH 1/1 mac80211: fix build failure
The two patches
mac80211: share sta->supp_rates
and
mac80211: share STA information with driver
caused a build failure in some debugging code, this fixes it. Thanks to Davide Pesavento for bringing the issue to my attention.
--- net/mac80211/mlme.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
net/mac80211/mlme.c +4 -3
@@ -1534,14 +1534,15 @@ static void ieee80211_rx_bss_info(structieee80211_mandatory_rates (local, band);#ifdef CONFIG_MAC80211_IBSS_DEBUG -if (sta->supp_rates[band] != prev_rates) +if (sta->sta.supp_rates[band] != prev_rates)printk (KERN_DEBUG "%s: updated supp_rates set " "for %s based on beacon info (0x%llx | " "0x%llx -> 0x%llx)\n" , - sdata->dev->name,print_mac (mac, sta->addr), + sdata->dev->name, +print_mac (mac, sta->sta.addr), (unsigned long long ) prev_rates, (unsigned long long ) supp_rates, - (unsigned long long ) sta->supp_rates[band]); + (unsigned long long ) sta->sta.supp_rates[band]);#endif }else { ieee80211_ibss_add_sta(sdata, NULL, mgmt->bssid,
2008/9/11 Johannes Berg <[email protected]>:
Quoted 28 lines
The two patches
mac80211: share sta->supp_ratesand
mac80211: share STA information with drivercaused a build failure in some debugging code, this fixes it. Thanks to Davide Pesavento for bringing the issue to my attention.
Signed-off-by Johannes Berg <[email protected]>Cc Davide Pesavento <[email protected]>--- net/mac80211/mlme.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)net/mac80211/mlme.c 2008-09-11 23:21:11.000000000 +0200 renamed from net/mac80211/mlme.c 2008-09-11 23:20:53.000000000 +0200 +1
-1@@ -1534,14 +1534,15 @@ static void ieee80211_rx_bss_info(struct ieee80211_mandatory_rates(local, band); #ifdef CONFIG_MAC80211_IBSS_DEBUG - if (sta->supp_rates[band] != prev_rates) + if (sta->sta.supp_rates[band] != prev_rates) printk(KERN_DEBUG "%s: updated supp_rates set " "for %s based on beacon info (0x%llx | " "0x%llx -> 0x%llx)\n",
net/mac80211/mlme.c 2008-09-11 23:21:11.000000000 +0200 static void ieee80211_rx_bss_info(struct · line 1548
Quoted 10 lines
net/mac80211/mlme.c 2008-09-11 23:21:11.000000000 +0200 renamed from net/mac80211/mlme.c 2008-09-11 23:20:53.000000000 +0200 +3
-2- sdata->dev->name, print_mac(mac, sta->addr), + sdata->dev->name, + print_mac(mac, sta->sta.addr), (unsigned long long) prev_rates, (unsigned long long) supp_rates, - (unsigned long long) sta->supp_rates[band]); + (unsigned long long) sta->sta.supp_rates[band]); #endif } else { ieee80211_ibss_add_sta(sdata, NULL, mgmt->bssid,
Thank you, this patch fixes the build failure I reported, but there's another one... :P
CC [M] net/mac80211/tx.onet/mac80211/tx.c: In function 'ieee80211_beacon_get':net/mac80211/tx.c:1906: error: 'union <anonymous>' has no member named 'mesh' make[2]: *** [net/mac80211/tx.o] Error 1
make[1]: *** [net/mac80211] Error 2
make: *** [net] Error 2
Johannes Berg
maintainerQuoted 2 lines · Davide Pesavento
Thank you, this patch fixes the build failure I reported, but there's another one... :P
All these weird configurations ;)
johannes