--- a/ath10k-6.10/mac.c
+++ b/ath10k-6.10/mac.c
@@ -6365,7 +6365,7 @@ static int ath10k_mac_set_txbf_conf(stru
 					 ar->wmi.vdev_param->txbf, value);
 }
 
-static void ath10k_update_vif_offload(struct ieee80211_hw *hw,
+static int ath10k_update_vif_offload(struct ieee80211_hw *hw,
 				      struct ieee80211_vif *vif)
 {
 	struct ath10k_vif *arvif = (void *)vif->drv_priv;
@@ -6387,6 +6387,8 @@ static void ath10k_update_vif_offload(st
 		ath10k_warn(ar, "failed to set vdev %i TX encapsulation: %d\n",
 			    arvif->vdev_id, ret);
 	}
+
+	return ret;
 }
 
 /*
