[IWINFO PATCH v4 2/4] iwinfo: export center_chan info for local wifi

Jo-Philipp Wich jo at mein.io
Tue Jan 5 17:29:54 EST 2021


Hi,

comments below.

> [...]
> diff --git a/include/iwinfo.h b/include/iwinfo.h
> index 676db91..680f384 100644
> --- a/include/iwinfo.h
> +++ b/include/iwinfo.h
> @@ -282,6 +282,8 @@ struct iwinfo_ops {
>  	int (*survey)(const char *, char *, int *);
>  	int (*lookup_phy)(const char *, char *);
>  	void (*close)(void);

Move these before the lookup_phy function:

> [...]
> @@ -3242,5 +3314,7 @@ const struct iwinfo_ops nl80211_ops = {
>  	.countrylist      = nl80211_get_countrylist,
>  	.survey           = nl80211_get_survey,
>  	.lookup_phy       = nl80211_lookup_phyname,
> -	.close            = nl80211_close
> +	.close            = nl80211_close,
> +	.center_chan1     = nl80211_get_center_chan1,
> +	.center_chan2     = nl80211_get_center_chan2

Please move the new function pointers before lookup_phyname.

>  };
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20210105/8f38b060/attachment.sig>


More information about the openwrt-devel mailing list