Re: help for driver porting - missing member preset_chandef in struct wireless_dev
From: Johannes Berg
Date: Mon Aug 22 2022 - 11:02:50 EST
On Mon, 2022-08-22 at 16:04 +0200, Frank Wunderlich wrote:
> hi,
>
> i'm working on porting an old/huge wireless driver (mt6625l) [2] to linux 6.0 [1]
>
> i hang on missing member preset_chandef in struct wireless_dev
>
> struct wireless_dev *wdev = dev->ieee80211_ptr;
> struct cfg80211_chan_def *chandef = &wdev->preset_chandef;
>
> it looks like this member is moved from the wdev into some mesh structure...my driver does not support mesh. any chance to fix this?
>
Yes. Make sure the driver doesn't access it, it should get stuff through
other APIs.
johannes