All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC wireless-next 4/4] wifi: b43: A-MPDU for the AC microcode
  2026-11-12 17:56 [PATCH RFC wireless-next 0/4] wifi: b43: AC microcode TX and RX formats (series 3/4) Andreas Wendleder
@ 2026-11-12 17:56   ` Andreas Wendleder
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Wendleder @ 2026-11-12 17:56 UTC (permalink / raw)
  To: linux-wireless
  Cc: Johannes Berg, b43-dev, Michael Buesch, Alessio Ferri, kvalo,
	julian.calaby, jpeisach, rosenp, linux-kernel

The microcode builds the aggregates and sends the block acks. Accept block
ack sessions on both sides (ampdu_action) and set
IEEE80211_HW_AMPDU_AGGREGATION on the AC cores.

Frames of a session that the microcode gave up on are put back on the
ring, up to four times, with the retry bit set; the block ack window lets
them follow later frames. The cache info limits an aggregate to four MPDUs,
longer ones lose their later MPDUs.
Signed-off-by: Andreas Wendleder <gonsolo@gmail.com>
---
 drivers/net/wireless/broadcom/b43/dma.c  | 48 ++++++++++++++++++++++++
 drivers/net/wireless/broadcom/b43/main.c | 37 ++++++++++++++++++
 drivers/net/wireless/broadcom/b43/xmit.c | 22 ++++++++++-
 drivers/net/wireless/broadcom/b43/xmit.h |  2 +
 4 files changed, 108 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/broadcom/b43/dma.c b/drivers/net/wireless/broadcom/b43/dma.c
index 404f75f..ef05327 100644
--- a/drivers/net/wireless/broadcom/b43/dma.c
+++ b/drivers/net/wireless/broadcom/b43/dma.c
@@ -34,6 +34,9 @@
  * into separate slots. */
 #define TX_SLOTS_PER_FRAME	2
 
+/* Times an unacknowledged A-MPDU session frame is put back on the ring */
+#define B43_AC_AMPDU_REQUEUE	4
+
 static u32 b43_dma_address(struct b43_dma *dma, dma_addr_t dmaaddr,
 			   enum b43_addrtype addrtype)
 {
@@ -1378,6 +1381,7 @@ int b43_dma_tx(struct b43_wldev *dev, struct sk_buff *skb)
 	struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
 
 	hdr = (struct ieee80211_hdr *)skb->data;
+	b43_get_priv_tx_info(info)->requeues = 0;
 	if (info->flags & IEEE80211_TX_CTL_SEND_AFTER_DTIM) {
 		/* The multicast ring will be sent after the DTIM */
 		ring = dev->dma.tx_ring_mcast;
@@ -1466,6 +1470,7 @@ void b43_dma_handle_txstatus(struct b43_wldev *dev,
 	static const struct b43_txstatus fake; /* filled with 0 */
 	const struct b43_txstatus *txstat;
 	int slot, firstused;
+	struct sk_buff *requeue = NULL;
 	bool frame_succeed;
 	int skip;
 	static u8 err_out1;
@@ -1568,6 +1573,29 @@ void b43_dma_handle_txstatus(struct b43_wldev *dev,
 			else
 				txstat = status;
 
+			/* A session frame the microcode gave up on goes back
+			 * on the ring, as the stock driver requeues it; the
+			 * block ack window lets it follow later frames.
+			 */
+			if (!skip && !txstat->acked &&
+			    (info->flags & IEEE80211_TX_CTL_AMPDU) &&
+			    !(info->flags & IEEE80211_TX_CTL_NO_ACK)) {
+				struct b43_private_tx_info *pi =
+					b43_get_priv_tx_info(info);
+
+				if (pi->requeues < B43_AC_AMPDU_REQUEUE) {
+					struct ieee80211_hdr *hdr =
+						(void *)meta->skb->data;
+
+					pi->requeues++;
+					hdr->frame_control |= cpu_to_le16(
+						IEEE80211_FCTL_RETRY);
+					requeue = meta->skb;
+					meta->skb = B43_DMA_PTR_POISON;
+					ring->used_slots--;
+					break;
+				}
+			}
 			frame_succeed = b43_fill_txstatus_report(dev, info,
 								 txstat);
 #ifdef CONFIG_B43_DEBUG
@@ -1606,6 +1634,26 @@ void b43_dma_handle_txstatus(struct b43_wldev *dev,
 		if (skip > 0)
 			--skip;
 	}
+	if (requeue) {
+		if (dma_tx_fragment(ring, requeue)) {
+			struct ieee80211_tx_info *info =
+				IEEE80211_SKB_CB(requeue);
+
+			b43_fill_txstatus_report(dev, info, status);
+			ieee80211_tx_status_skb(dev->wl->hw, requeue);
+		} else if (free_slots(ring) < TX_SLOTS_PER_FRAME) {
+			/* The requeued frame took the slots this status freed:
+			 * the ring is still full, keep the queue stopped.
+			 */
+			if (!ring->stopped) {
+				b43_stop_queue(dev, ring->queue_prio);
+				dev->wl->tx_queue_stopped[ring->queue_prio] =
+					true;
+				ring->stopped = true;
+			}
+			return;
+		}
+	}
 	if (ring->stopped) {
 		B43_WARN_ON(free_slots(ring) < TX_SLOTS_PER_FRAME);
 		ring->stopped = false;
diff --git a/drivers/net/wireless/broadcom/b43/main.c b/drivers/net/wireless/broadcom/b43/main.c
index 5830acb..6b80b5e 100644
--- a/drivers/net/wireless/broadcom/b43/main.c
+++ b/drivers/net/wireless/broadcom/b43/main.c
@@ -5479,6 +5479,39 @@ static int b43_op_get_survey(struct ieee80211_hw *hw, int idx,
 	return 0;
 }
 
+static int b43_op_ampdu_action(struct ieee80211_hw *hw,
+			       struct ieee80211_vif *vif,
+			       struct ieee80211_ampdu_params *params)
+{
+	struct b43_wl *wl = hw_to_b43_wl(hw);
+
+	/* Only the AC-PHY path builds session frames */
+	if (!wl->current_dev || !b43_ucode_is_ac(wl->current_dev))
+		return -EOPNOTSUPP;
+
+	switch (params->action) {
+	case IEEE80211_AMPDU_TX_START:
+		return IEEE80211_AMPDU_TX_START_IMMEDIATE;
+	case IEEE80211_AMPDU_TX_STOP_CONT:
+	case IEEE80211_AMPDU_TX_STOP_FLUSH:
+	case IEEE80211_AMPDU_TX_STOP_FLUSH_CONT:
+		ieee80211_stop_tx_ba_cb_irqsafe(vif, params->sta->addr,
+						params->tid);
+		return 0;
+	case IEEE80211_AMPDU_TX_OPERATIONAL:
+		return 0;
+	case IEEE80211_AMPDU_RX_START:
+	case IEEE80211_AMPDU_RX_STOP:
+		/*
+		 * The microcode deaggregates and sends the block acks, mac80211
+		 * reorders.
+		 */
+		return 0;
+	default:
+		return -EOPNOTSUPP;
+	}
+}
+
 static const struct ieee80211_ops b43_hw_ops = {
 	.add_chanctx = ieee80211_emulate_add_chanctx,
 	.remove_chanctx = ieee80211_emulate_remove_chanctx,
@@ -5501,6 +5534,7 @@ static const struct ieee80211_ops b43_hw_ops = {
 	.stop			= b43_op_stop,
 	.set_tim		= b43_op_beacon_set_tim,
 	.sta_notify		= b43_op_sta_notify,
+	.ampdu_action		= b43_op_ampdu_action,
 	.sw_scan_start		= b43_op_sw_scan_start_notifier,
 	.sw_scan_complete	= b43_op_sw_scan_complete_notifier,
 	.get_survey		= b43_op_get_survey,
@@ -5590,6 +5624,9 @@ static int b43_setup_bands(struct b43_wldev *dev,
 			hw->wiphy->bands[NL80211_BAND_5GHZ] = &b43_band_5GHz_aphy;
 	}
 
+	if (b43_is_ac_core(dev))
+		ieee80211_hw_set(hw, AMPDU_AGGREGATION);
+
 	dev->phy.supports_2ghz = have_2ghz_phy;
 	dev->phy.supports_5ghz = have_5ghz_phy;
 
diff --git a/drivers/net/wireless/broadcom/b43/xmit.c b/drivers/net/wireless/broadcom/b43/xmit.c
index dee6cc6..163e713 100644
--- a/drivers/net/wireless/broadcom/b43/xmit.c
+++ b/drivers/net/wireless/broadcom/b43/xmit.c
@@ -1160,7 +1160,27 @@ bool b43_fill_txstatus_report(struct b43_wldev *dev,
 			frame_success = false;
 		}
 	}
-	if (status->frame_count == 0) {
+	if (report->flags & IEEE80211_TX_CTL_AMPDU) {
+		/*
+		 * minstrel_ht ignores session frames without this; one report
+		 * per MPDU
+		 */
+		report->flags |= IEEE80211_TX_STAT_AMPDU;
+		report->status.ampdu_len = 1;
+		report->status.ampdu_ack_len = status->acked ? 1 : 0;
+	}
+	if ((report->flags & IEEE80211_TX_CTL_AMPDU) &&
+	    (report->status.rates[0].flags &
+	     (IEEE80211_TX_RC_MCS | IEEE80211_TX_RC_VHT_MCS))) {
+		/* Sent with two rate blocks: attempts at each */
+		report->status.rates[0].count = status->frame_count;
+		if (status->fb_count && report->status.rates[1].idx >= 0 &&
+		    (report->status.rates[1].flags &
+		     (IEEE80211_TX_RC_MCS | IEEE80211_TX_RC_VHT_MCS)))
+			report->status.rates[1].count = status->fb_count;
+		else
+			report->status.rates[1].idx = -1;
+	} else if (status->frame_count == 0) {
 		/* The frame was not transmitted at all. */
 		report->status.rates[0].count = 0;
 	} else if (status->rts_count > dev->wl->hw->conf.short_frame_max_tx_count) {
diff --git a/drivers/net/wireless/broadcom/b43/xmit.h b/drivers/net/wireless/broadcom/b43/xmit.h
index d403a28..b6723be 100644
--- a/drivers/net/wireless/broadcom/b43/xmit.h
+++ b/drivers/net/wireless/broadcom/b43/xmit.h
@@ -412,9 +412,11 @@ static inline u8 b43_kidx_to_raw(struct b43_wldev *dev, u8 firmware_kidx)
  * The structure is placed in (struct ieee80211_tx_info *)->rate_driver_data
  *
  * @bouncebuffer: DMA Bouncebuffer (if used)
+ * @requeues: times the frame was put back on the ring (AC-PHY A-MPDU)
  */
 struct b43_private_tx_info {
 	void *bouncebuffer;
+	u8 requeues;
 };
 
 static inline struct b43_private_tx_info *

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

* [PATCH RFC wireless-next 4/4] wifi: b43: A-MPDU for the AC microcode
@ 2026-11-12 17:56   ` Andreas Wendleder
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Wendleder @ 2026-11-12 17:56 UTC (permalink / raw)
  To: linux-wireless
  Cc: jpeisach, julian.calaby, kvalo, linux-kernel, rosenp, b43-dev,
	Michael Buesch, Johannes Berg

The microcode builds the aggregates and sends the block acks. Accept block
ack sessions on both sides (ampdu_action) and set
IEEE80211_HW_AMPDU_AGGREGATION on the AC cores.

Frames of a session that the microcode gave up on are put back on the
ring, up to four times, with the retry bit set; the block ack window lets
them follow later frames. The cache info limits an aggregate to four MPDUs,
longer ones lose their later MPDUs.
Signed-off-by: Andreas Wendleder <gonsolo@gmail.com>
---
 drivers/net/wireless/broadcom/b43/dma.c  | 48 ++++++++++++++++++++++++
 drivers/net/wireless/broadcom/b43/main.c | 37 ++++++++++++++++++
 drivers/net/wireless/broadcom/b43/xmit.c | 22 ++++++++++-
 drivers/net/wireless/broadcom/b43/xmit.h |  2 +
 4 files changed, 108 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/broadcom/b43/dma.c b/drivers/net/wireless/broadcom/b43/dma.c
index 404f75f..ef05327 100644
--- a/drivers/net/wireless/broadcom/b43/dma.c
+++ b/drivers/net/wireless/broadcom/b43/dma.c
@@ -34,6 +34,9 @@
  * into separate slots. */
 #define TX_SLOTS_PER_FRAME	2
 
+/* Times an unacknowledged A-MPDU session frame is put back on the ring */
+#define B43_AC_AMPDU_REQUEUE	4
+
 static u32 b43_dma_address(struct b43_dma *dma, dma_addr_t dmaaddr,
 			   enum b43_addrtype addrtype)
 {
@@ -1378,6 +1381,7 @@ int b43_dma_tx(struct b43_wldev *dev, struct sk_buff *skb)
 	struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
 
 	hdr = (struct ieee80211_hdr *)skb->data;
+	b43_get_priv_tx_info(info)->requeues = 0;
 	if (info->flags & IEEE80211_TX_CTL_SEND_AFTER_DTIM) {
 		/* The multicast ring will be sent after the DTIM */
 		ring = dev->dma.tx_ring_mcast;
@@ -1466,6 +1470,7 @@ void b43_dma_handle_txstatus(struct b43_wldev *dev,
 	static const struct b43_txstatus fake; /* filled with 0 */
 	const struct b43_txstatus *txstat;
 	int slot, firstused;
+	struct sk_buff *requeue = NULL;
 	bool frame_succeed;
 	int skip;
 	static u8 err_out1;
@@ -1568,6 +1573,29 @@ void b43_dma_handle_txstatus(struct b43_wldev *dev,
 			else
 				txstat = status;
 
+			/* A session frame the microcode gave up on goes back
+			 * on the ring, as the stock driver requeues it; the
+			 * block ack window lets it follow later frames.
+			 */
+			if (!skip && !txstat->acked &&
+			    (info->flags & IEEE80211_TX_CTL_AMPDU) &&
+			    !(info->flags & IEEE80211_TX_CTL_NO_ACK)) {
+				struct b43_private_tx_info *pi =
+					b43_get_priv_tx_info(info);
+
+				if (pi->requeues < B43_AC_AMPDU_REQUEUE) {
+					struct ieee80211_hdr *hdr =
+						(void *)meta->skb->data;
+
+					pi->requeues++;
+					hdr->frame_control |= cpu_to_le16(
+						IEEE80211_FCTL_RETRY);
+					requeue = meta->skb;
+					meta->skb = B43_DMA_PTR_POISON;
+					ring->used_slots--;
+					break;
+				}
+			}
 			frame_succeed = b43_fill_txstatus_report(dev, info,
 								 txstat);
 #ifdef CONFIG_B43_DEBUG
@@ -1606,6 +1634,26 @@ void b43_dma_handle_txstatus(struct b43_wldev *dev,
 		if (skip > 0)
 			--skip;
 	}
+	if (requeue) {
+		if (dma_tx_fragment(ring, requeue)) {
+			struct ieee80211_tx_info *info =
+				IEEE80211_SKB_CB(requeue);
+
+			b43_fill_txstatus_report(dev, info, status);
+			ieee80211_tx_status_skb(dev->wl->hw, requeue);
+		} else if (free_slots(ring) < TX_SLOTS_PER_FRAME) {
+			/* The requeued frame took the slots this status freed:
+			 * the ring is still full, keep the queue stopped.
+			 */
+			if (!ring->stopped) {
+				b43_stop_queue(dev, ring->queue_prio);
+				dev->wl->tx_queue_stopped[ring->queue_prio] =
+					true;
+				ring->stopped = true;
+			}
+			return;
+		}
+	}
 	if (ring->stopped) {
 		B43_WARN_ON(free_slots(ring) < TX_SLOTS_PER_FRAME);
 		ring->stopped = false;
diff --git a/drivers/net/wireless/broadcom/b43/main.c b/drivers/net/wireless/broadcom/b43/main.c
index 5830acb..6b80b5e 100644
--- a/drivers/net/wireless/broadcom/b43/main.c
+++ b/drivers/net/wireless/broadcom/b43/main.c
@@ -5479,6 +5479,39 @@ static int b43_op_get_survey(struct ieee80211_hw *hw, int idx,
 	return 0;
 }
 
+static int b43_op_ampdu_action(struct ieee80211_hw *hw,
+			       struct ieee80211_vif *vif,
+			       struct ieee80211_ampdu_params *params)
+{
+	struct b43_wl *wl = hw_to_b43_wl(hw);
+
+	/* Only the AC-PHY path builds session frames */
+	if (!wl->current_dev || !b43_ucode_is_ac(wl->current_dev))
+		return -EOPNOTSUPP;
+
+	switch (params->action) {
+	case IEEE80211_AMPDU_TX_START:
+		return IEEE80211_AMPDU_TX_START_IMMEDIATE;
+	case IEEE80211_AMPDU_TX_STOP_CONT:
+	case IEEE80211_AMPDU_TX_STOP_FLUSH:
+	case IEEE80211_AMPDU_TX_STOP_FLUSH_CONT:
+		ieee80211_stop_tx_ba_cb_irqsafe(vif, params->sta->addr,
+						params->tid);
+		return 0;
+	case IEEE80211_AMPDU_TX_OPERATIONAL:
+		return 0;
+	case IEEE80211_AMPDU_RX_START:
+	case IEEE80211_AMPDU_RX_STOP:
+		/*
+		 * The microcode deaggregates and sends the block acks, mac80211
+		 * reorders.
+		 */
+		return 0;
+	default:
+		return -EOPNOTSUPP;
+	}
+}
+
 static const struct ieee80211_ops b43_hw_ops = {
 	.add_chanctx = ieee80211_emulate_add_chanctx,
 	.remove_chanctx = ieee80211_emulate_remove_chanctx,
@@ -5501,6 +5534,7 @@ static const struct ieee80211_ops b43_hw_ops = {
 	.stop			= b43_op_stop,
 	.set_tim		= b43_op_beacon_set_tim,
 	.sta_notify		= b43_op_sta_notify,
+	.ampdu_action		= b43_op_ampdu_action,
 	.sw_scan_start		= b43_op_sw_scan_start_notifier,
 	.sw_scan_complete	= b43_op_sw_scan_complete_notifier,
 	.get_survey		= b43_op_get_survey,
@@ -5590,6 +5624,9 @@ static int b43_setup_bands(struct b43_wldev *dev,
 			hw->wiphy->bands[NL80211_BAND_5GHZ] = &b43_band_5GHz_aphy;
 	}
 
+	if (b43_is_ac_core(dev))
+		ieee80211_hw_set(hw, AMPDU_AGGREGATION);
+
 	dev->phy.supports_2ghz = have_2ghz_phy;
 	dev->phy.supports_5ghz = have_5ghz_phy;
 
diff --git a/drivers/net/wireless/broadcom/b43/xmit.c b/drivers/net/wireless/broadcom/b43/xmit.c
index dee6cc6..163e713 100644
--- a/drivers/net/wireless/broadcom/b43/xmit.c
+++ b/drivers/net/wireless/broadcom/b43/xmit.c
@@ -1160,7 +1160,27 @@ bool b43_fill_txstatus_report(struct b43_wldev *dev,
 			frame_success = false;
 		}
 	}
-	if (status->frame_count == 0) {
+	if (report->flags & IEEE80211_TX_CTL_AMPDU) {
+		/*
+		 * minstrel_ht ignores session frames without this; one report
+		 * per MPDU
+		 */
+		report->flags |= IEEE80211_TX_STAT_AMPDU;
+		report->status.ampdu_len = 1;
+		report->status.ampdu_ack_len = status->acked ? 1 : 0;
+	}
+	if ((report->flags & IEEE80211_TX_CTL_AMPDU) &&
+	    (report->status.rates[0].flags &
+	     (IEEE80211_TX_RC_MCS | IEEE80211_TX_RC_VHT_MCS))) {
+		/* Sent with two rate blocks: attempts at each */
+		report->status.rates[0].count = status->frame_count;
+		if (status->fb_count && report->status.rates[1].idx >= 0 &&
+		    (report->status.rates[1].flags &
+		     (IEEE80211_TX_RC_MCS | IEEE80211_TX_RC_VHT_MCS)))
+			report->status.rates[1].count = status->fb_count;
+		else
+			report->status.rates[1].idx = -1;
+	} else if (status->frame_count == 0) {
 		/* The frame was not transmitted at all. */
 		report->status.rates[0].count = 0;
 	} else if (status->rts_count > dev->wl->hw->conf.short_frame_max_tx_count) {
diff --git a/drivers/net/wireless/broadcom/b43/xmit.h b/drivers/net/wireless/broadcom/b43/xmit.h
index d403a28..b6723be 100644
--- a/drivers/net/wireless/broadcom/b43/xmit.h
+++ b/drivers/net/wireless/broadcom/b43/xmit.h
@@ -412,9 +412,11 @@ static inline u8 b43_kidx_to_raw(struct b43_wldev *dev, u8 firmware_kidx)
  * The structure is placed in (struct ieee80211_tx_info *)->rate_driver_data
  *
  * @bouncebuffer: DMA Bouncebuffer (if used)
+ * @requeues: times the frame was put back on the ring (AC-PHY A-MPDU)
  */
 struct b43_private_tx_info {
 	void *bouncebuffer;
+	u8 requeues;
 };
 
 static inline struct b43_private_tx_info *

_______________________________________________
b43-dev mailing list
b43-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/b43-dev

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

* Re: [PATCH RFC wireless-next 4/4] wifi: b43: A-MPDU for the AC microcode
@ 2026-11-21 18:17 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2026-11-21 18:17 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "same reports for this branch"
:::::: Manual check reason: "linux-review patch is more than 7 days old, verify it wasn't already superseded"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20261112175640.40603-5-gonsolo@gmail.com>
References: <20261112175640.40603-5-gonsolo@gmail.com>
TO: Andreas Wendleder <gonsolo@gmail.com>

Hi Andreas,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:

[auto build test ERROR on wireless-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Andreas-Wendleder/wifi-b43-11ac-chanspec-for-the-AC-microcode/20261112-185637
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main
patch link:    https://lore.kernel.org/r/20261112175640.40603-5-gonsolo%40gmail.com
patch subject: [PATCH RFC wireless-next 4/4] wifi: b43: A-MPDU for the AC microcode
:::::: branch date: 8 days ago
:::::: commit date: 8 days ago
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20261122/202611220239.VV63dQYO-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261122/202611220239.VV63dQYO-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202611220239.VV63dQYO-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/net/wireless/broadcom/b43/main.c:44:
   drivers/net/wireless/broadcom/b43/xmit.h: In function 'b43_txhdr_size':
   drivers/net/wireless/broadcom/b43/xmit.h:202:13: error: implicit declaration of function 'b43_ucode_is_ac' [-Wimplicit-function-declaration]
     202 |         if (b43_ucode_is_ac(dev))
         |             ^~~~~~~~~~~~~~~
   drivers/net/wireless/broadcom/b43/main.c: In function 'b43_setup_bands':
>> drivers/net/wireless/broadcom/b43/main.c:5409:13: error: implicit declaration of function 'b43_is_ac_core'; did you mean 'b43_is_cck_rate'? [-Wimplicit-function-declaration]
    5409 |         if (b43_is_ac_core(dev))
         |             ^~~~~~~~~~~~~~
         |             b43_is_cck_rate


vim +5409 drivers/net/wireless/broadcom/b43/main.c

e4d6b7951812d9 drivers/net/wireless/b43/main.c          Michael Buesch    2007-09-18  5381  
bb1eeff12d4cd6 drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5382  static int b43_setup_bands(struct b43_wldev *dev,
96c755a3923748 drivers/net/wireless/b43/main.c          Michael Buesch    2008-01-06  5383  			   bool have_2ghz_phy, bool have_5ghz_phy)
e4d6b7951812d9 drivers/net/wireless/b43/main.c          Michael Buesch    2007-09-18  5384  {
e4d6b7951812d9 drivers/net/wireless/b43/main.c          Michael Buesch    2007-09-18  5385  	struct ieee80211_hw *hw = dev->wl->hw;
3695b9324ee9bb drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-08  5386  	struct b43_phy *phy = &dev->phy;
3695b9324ee9bb drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-08  5387  	bool limited_2g;
b453fda6bad14d drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-23  5388  	bool limited_5g;
3695b9324ee9bb drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-08  5389  
3695b9324ee9bb drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-08  5390  	/* We don't support all 2 GHz channels on some devices */
c11082f0c00acd drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-19  5391  	limited_2g = phy->radio_ver == 0x2057 &&
c11082f0c00acd drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-19  5392  		     (phy->radio_rev == 9 || phy->radio_rev == 14);
b453fda6bad14d drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-23  5393  	limited_5g = phy->radio_ver == 0x2057 &&
b453fda6bad14d drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-23  5394  		     phy->radio_rev == 9;
e4d6b7951812d9 drivers/net/wireless/b43/main.c          Michael Buesch    2007-09-18  5395  
bb1eeff12d4cd6 drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5396  	if (have_2ghz_phy)
57fbcce37be7c1 drivers/net/wireless/broadcom/b43/main.c Johannes Berg     2016-04-12  5397  		hw->wiphy->bands[NL80211_BAND_2GHZ] = limited_2g ?
3695b9324ee9bb drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-08  5398  			&b43_band_2ghz_limited : &b43_band_2GHz;
bb1eeff12d4cd6 drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5399  	if (dev->phy.type == B43_PHYTYPE_N) {
bb1eeff12d4cd6 drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5400  		if (have_5ghz_phy)
57fbcce37be7c1 drivers/net/wireless/broadcom/b43/main.c Johannes Berg     2016-04-12  5401  			hw->wiphy->bands[NL80211_BAND_5GHZ] = limited_5g ?
b453fda6bad14d drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-23  5402  				&b43_band_5GHz_nphy_limited :
b453fda6bad14d drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-23  5403  				&b43_band_5GHz_nphy;
bb1eeff12d4cd6 drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5404  	} else {
bb1eeff12d4cd6 drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5405  		if (have_5ghz_phy)
57fbcce37be7c1 drivers/net/wireless/broadcom/b43/main.c Johannes Berg     2016-04-12  5406  			hw->wiphy->bands[NL80211_BAND_5GHZ] = &b43_band_5GHz_aphy;
bb1eeff12d4cd6 drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5407  	}
bb1eeff12d4cd6 drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5408  
2decf2ceb04dae drivers/net/wireless/broadcom/b43/main.c Andreas Wendleder 2026-11-12 @5409  	if (b43_is_ac_core(dev))
2decf2ceb04dae drivers/net/wireless/broadcom/b43/main.c Andreas Wendleder 2026-11-12  5410  		ieee80211_hw_set(hw, AMPDU_AGGREGATION);
2decf2ceb04dae drivers/net/wireless/broadcom/b43/main.c Andreas Wendleder 2026-11-12  5411  
bb1eeff12d4cd6 drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5412  	dev->phy.supports_2ghz = have_2ghz_phy;
bb1eeff12d4cd6 drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5413  	dev->phy.supports_5ghz = have_5ghz_phy;
e4d6b7951812d9 drivers/net/wireless/b43/main.c          Michael Buesch    2007-09-18  5414  
e4d6b7951812d9 drivers/net/wireless/b43/main.c          Michael Buesch    2007-09-18  5415  	return 0;
e4d6b7951812d9 drivers/net/wireless/b43/main.c          Michael Buesch    2007-09-18  5416  }
e4d6b7951812d9 drivers/net/wireless/b43/main.c          Michael Buesch    2007-09-18  5417  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

* Re: [PATCH RFC wireless-next 4/4] wifi: b43: A-MPDU for the AC microcode
@ 2026-11-22  4:49 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2026-11-22  4:49 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "same reports for this branch"
:::::: Manual check reason: "linux-review patch is more than 7 days old, verify it wasn't already superseded"
:::::: 

BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20261112175640.40603-5-gonsolo@gmail.com>
References: <20261112175640.40603-5-gonsolo@gmail.com>
TO: Andreas Wendleder <gonsolo@gmail.com>

Hi Andreas,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:

[auto build test ERROR on wireless-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Andreas-Wendleder/wifi-b43-11ac-chanspec-for-the-AC-microcode/20261112-185637
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main
patch link:    https://lore.kernel.org/r/20261112175640.40603-5-gonsolo%40gmail.com
patch subject: [PATCH RFC wireless-next 4/4] wifi: b43: A-MPDU for the AC microcode
:::::: branch date: 8 days ago
:::::: commit date: 8 days ago
config: um-allmodconfig (https://download.01.org/0day-ci/archive/20261122/202611221214.jUrqBylV-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261122/202611221214.jUrqBylV-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202611221214.jUrqBylV-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/net/wireless/broadcom/b43/main.c:25:
   In file included from include/linux/if_arp.h:22:
   In file included from include/linux/skbuff.h:17:
   In file included from include/linux/bvec.h:10:
   In file included from include/linux/highmem.h:12:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:24:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:12:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:1209:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
    1209 |         return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
         |                                                   ~~~~~~~~~~ ^
   In file included from drivers/net/wireless/broadcom/b43/main.c:44:
   drivers/net/wireless/broadcom/b43/xmit.h:202:6: error: call to undeclared function 'b43_ucode_is_ac'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     202 |         if (b43_ucode_is_ac(dev))
         |             ^
   drivers/net/wireless/broadcom/b43/main.c:1346:7: error: call to undeclared function 'b43_ucode_is_ac'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1346 |                 if (b43_ucode_is_ac(dev)) {
         |                     ^
   drivers/net/wireless/broadcom/b43/main.c:1444:7: error: call to undeclared function 'b43_ucode_is_ac'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1444 |                 if (b43_ucode_is_ac(dev)) {
         |                     ^
   drivers/net/wireless/broadcom/b43/main.c:5271:27: error: call to undeclared function 'b43_ucode_is_ac'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    5271 |         if (!wl->current_dev || !b43_ucode_is_ac(wl->current_dev))
         |                                  ^
>> drivers/net/wireless/broadcom/b43/main.c:5409:6: error: call to undeclared function 'b43_is_ac_core'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    5409 |         if (b43_is_ac_core(dev))
         |             ^
   1 warning and 5 errors generated.


vim +/b43_is_ac_core +5409 drivers/net/wireless/broadcom/b43/main.c

e4d6b7951812d98 drivers/net/wireless/b43/main.c          Michael Buesch    2007-09-18  5381  
bb1eeff12d4cd6c drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5382  static int b43_setup_bands(struct b43_wldev *dev,
96c755a39237483 drivers/net/wireless/b43/main.c          Michael Buesch    2008-01-06  5383  			   bool have_2ghz_phy, bool have_5ghz_phy)
e4d6b7951812d98 drivers/net/wireless/b43/main.c          Michael Buesch    2007-09-18  5384  {
e4d6b7951812d98 drivers/net/wireless/b43/main.c          Michael Buesch    2007-09-18  5385  	struct ieee80211_hw *hw = dev->wl->hw;
3695b9324ee9bb8 drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-08  5386  	struct b43_phy *phy = &dev->phy;
3695b9324ee9bb8 drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-08  5387  	bool limited_2g;
b453fda6bad14d1 drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-23  5388  	bool limited_5g;
3695b9324ee9bb8 drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-08  5389  
3695b9324ee9bb8 drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-08  5390  	/* We don't support all 2 GHz channels on some devices */
c11082f0c00acde drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-19  5391  	limited_2g = phy->radio_ver == 0x2057 &&
c11082f0c00acde drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-19  5392  		     (phy->radio_rev == 9 || phy->radio_rev == 14);
b453fda6bad14d1 drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-23  5393  	limited_5g = phy->radio_ver == 0x2057 &&
b453fda6bad14d1 drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-23  5394  		     phy->radio_rev == 9;
e4d6b7951812d98 drivers/net/wireless/b43/main.c          Michael Buesch    2007-09-18  5395  
bb1eeff12d4cd6c drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5396  	if (have_2ghz_phy)
57fbcce37be7c1d drivers/net/wireless/broadcom/b43/main.c Johannes Berg     2016-04-12  5397  		hw->wiphy->bands[NL80211_BAND_2GHZ] = limited_2g ?
3695b9324ee9bb8 drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-08  5398  			&b43_band_2ghz_limited : &b43_band_2GHz;
bb1eeff12d4cd6c drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5399  	if (dev->phy.type == B43_PHYTYPE_N) {
bb1eeff12d4cd6c drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5400  		if (have_5ghz_phy)
57fbcce37be7c1d drivers/net/wireless/broadcom/b43/main.c Johannes Berg     2016-04-12  5401  			hw->wiphy->bands[NL80211_BAND_5GHZ] = limited_5g ?
b453fda6bad14d1 drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-23  5402  				&b43_band_5GHz_nphy_limited :
b453fda6bad14d1 drivers/net/wireless/b43/main.c          Rafał Miłecki     2014-07-23  5403  				&b43_band_5GHz_nphy;
bb1eeff12d4cd6c drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5404  	} else {
bb1eeff12d4cd6c drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5405  		if (have_5ghz_phy)
57fbcce37be7c1d drivers/net/wireless/broadcom/b43/main.c Johannes Berg     2016-04-12  5406  			hw->wiphy->bands[NL80211_BAND_5GHZ] = &b43_band_5GHz_aphy;
bb1eeff12d4cd6c drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5407  	}
bb1eeff12d4cd6c drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5408  
2decf2ceb04dae6 drivers/net/wireless/broadcom/b43/main.c Andreas Wendleder 2026-11-12 @5409  	if (b43_is_ac_core(dev))
2decf2ceb04dae6 drivers/net/wireless/broadcom/b43/main.c Andreas Wendleder 2026-11-12  5410  		ieee80211_hw_set(hw, AMPDU_AGGREGATION);
2decf2ceb04dae6 drivers/net/wireless/broadcom/b43/main.c Andreas Wendleder 2026-11-12  5411  
bb1eeff12d4cd6c drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5412  	dev->phy.supports_2ghz = have_2ghz_phy;
bb1eeff12d4cd6c drivers/net/wireless/b43/main.c          Michael Buesch    2008-02-09  5413  	dev->phy.supports_5ghz = have_5ghz_phy;
e4d6b7951812d98 drivers/net/wireless/b43/main.c          Michael Buesch    2007-09-18  5414  
e4d6b7951812d98 drivers/net/wireless/b43/main.c          Michael Buesch    2007-09-18  5415  	return 0;
e4d6b7951812d98 drivers/net/wireless/b43/main.c          Michael Buesch    2007-09-18  5416  }
e4d6b7951812d98 drivers/net/wireless/b43/main.c          Michael Buesch    2007-09-18  5417  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

end of thread, other threads:[~2026-11-22  4:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-22  4:49 [PATCH RFC wireless-next 4/4] wifi: b43: A-MPDU for the AC microcode kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-11-21 18:17 kernel test robot
2026-11-12 17:56 [PATCH RFC wireless-next 0/4] wifi: b43: AC microcode TX and RX formats (series 3/4) Andreas Wendleder
2026-11-12 17:56 ` [PATCH RFC wireless-next 4/4] wifi: b43: A-MPDU for the AC microcode Andreas Wendleder
2026-11-12 17:56   ` Andreas Wendleder

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.