On Mon, 2016-10-03 at 13:31 +0200, M. Braun wrote: > Am 03.10.2016 um 13:03 schrieb M. Braun: > > > > because the in ieee80211_mgmt_tx the > > ups, that was the patch itself. > > I think I carried it over from ieee80211_add_key, that does > > > > > > > if (mac_addr) { > > if (ieee80211_vif_is_mesh(&sdata->vif)) > > sta = sta_info_get(sdata, mac_addr); > > else > > sta = sta_info_get_bss(sdata, mac_addr); > > > Ok, so that's there, but I still don't see the point - sta->sdata->bss will be NULL for any mesh STA. Thomas, do you remember anything about why you did this back in commit ff973af74aa6932ca4758266bccec68e8135ddf7 Author: Thomas Pedersen <thomas@xxxxxxxxxxx> Date: Tue May 3 16:57:12 2011 -0700 nl80211: allow installing keys for a meshif ? (yeah, long shot, it's 5.5 years ago ...) johannes