Thread (43 messages) 43 messages, 3 authors, 2023-07-19

Re: [PATCH v2 8/8] mac80211: save transmit power envelope element and power constraint

From: Wen Gong <hidden>
Date: 2021-08-27 06:53:45
Also in: ath11k

On 2021-08-27 14:46, Johannes Berg wrote:
On Fri, 2021-08-27 at 10:11 +0800, Wen Gong wrote:
quoted
quoted
Also, if we're doing this anyway, then we can change
the code above (perhaps as a separate patch) to not do
cfg80211_find_ext_ie() but rather take it out of the parsed.
do you mean NOT use cfg80211_find_ext_ie()/cfg80211_find_ie() and 
still
use "struct ieee802_11_elems elems" here and
move this code to a separate function/patch?
Well, there's an existing place in this function that uses
cfg80211_find_ext_ie(), and various uses of ieee80211_bss_get_ie(), so
it feels like if we're going to do the full parsing, we should switch
all the existing "look up an element" to also use the parsed data
instead.

Not the other way around :)
ok.
so it ha 2 way to change, right?
1.
change ieee802_11_parse_elems() to ieee80211_bss_get_ie()

2.
still use ieee802_11_parse_elems(), and change others 
ieee80211_bss_get_ie()/cfg80211_find_ext_ie()
to use the result of ieee802_11_parse_elems()
johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help