mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Callan Huang <luvings@qq.com>
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] wifi: wext: propagate metadata on -E2BIG for GET ioctls
Date: Mon, 25 Aug 2025 09:33:22 +0200	[thread overview]
Message-ID: <da586793e06d68e51af8f691e9aac82441d3808b.camel@sipsolutions.net> (raw)
In-Reply-To: <tencent_FE21EA217C7FF6B3CEAB5749F98F0267EC0A@qq.com>

On Thu, 2025-08-07 at 21:10 +0800, Callan Huang wrote:
> When GET ioctls encounter insufficient buffer (-E2BIG),
> preserve u.data.length metadata in iwreq structure for size detection
> 
> Typical usage in userspace tools like 'iwlist wlan0 scanning':
> - Detect required buffer size via u.data.length
> - Implement retry logic with proper allocation

If you'd sent this patch 15 years ago I probably would've taken it, but
honestly, at this point ... no. Just use nl80211, or large buffers in
the userspace to start with. There's a very small buffer limit _anyway_,
so that getting the full scan list in busy environments is actually
impossible with wext.

johannes

      reply	other threads:[~2025-08-25  8:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-07 13:10 Callan Huang
2025-08-25  7:33 ` Johannes Berg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=da586793e06d68e51af8f691e9aac82441d3808b.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luvings@qq.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®