On Thu, 2009-10-01 at 21:55 +0200, Blaž Bačnik wrote: > On Thu, Oct 1, 2009 at 8:39 PM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > > Thanks for looking into the crash -- I can't explain it. > > > >> - if (ieee80211_vif_is_mesh(&sdata->vif)) { > >> + if (ieee80211_vif_is_mesh(&(*sta)->sdata->vif)) { > > > > However, that doesn't make any sense, given > > > > struct ieee80211_sub_if_data *sdata = (*sta)->sdata; > > > > Could the compiler be playing tricks on us? > > There's the sdata = container_of(sdata->bss, struct ieee80211_sub_if_data, u.ap) > in if-clause right in front of the ieee80211_vif_is_mesh and since > this is a vlan interface that if-clause gets executed. Ahh. hwsim has no sta_notify callback. I'll amend my other patch appropriately, since your fix is, while correct, kinda hard to understand. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part