Skip to content

Commit 1f97f6c

Browse files
Liao Yuanhonggregkh
authored andcommitted
wifi: mac80211: fix incorrect type for ret
[ Upstream commit a33b375 ] The variable ret is declared as a u32 type, but it is assigned a value of -EOPNOTSUPP. Since unsigned types cannot correctly represent negative values, the type of ret should be changed to int. Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com> Link: https://patch.msgid.link/20250825022911.139377-1-liaoyuanhong@vivo.com Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 16c9244 commit 1f97f6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/mac80211/driver-ops.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ drv_get_ftm_responder_stats(struct ieee80211_local *local,
12161216
struct ieee80211_sub_if_data *sdata,
12171217
struct cfg80211_ftm_responder_stats *ftm_stats)
12181218
{
1219-
u32 ret = -EOPNOTSUPP;
1219+
int ret = -EOPNOTSUPP;
12201220

12211221
if (local->ops->get_ftm_responder_stats)
12221222
ret = local->ops->get_ftm_responder_stats(&local->hw,

0 commit comments

Comments
 (0)