check if the node/station table is already present before creating one; this
can happen on an ibss merge
This commit is contained in:
parent
3ea67c5431
commit
3d07392995
@ -758,8 +758,10 @@ ieee80211_sta_join(struct ieee80211com *ic, struct ieee80211_node *selbs)
|
||||
return 0;
|
||||
}
|
||||
/*
|
||||
* Create the neighbor table.
|
||||
* Create the neighbor table; it will already
|
||||
* exist if we are simply switching mastership.
|
||||
*/
|
||||
if (ic->ic_sta == NULL) {
|
||||
ic->ic_sta = ieee80211_node_table_alloc(ic,
|
||||
"neighbor", ic->ic_inact_run,
|
||||
ieee80211_timeout_stations);
|
||||
@ -771,6 +773,7 @@ ieee80211_sta_join(struct ieee80211com *ic, struct ieee80211_node *selbs)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Committed to selbs, setup state.
|
||||
|
Loading…
Reference in New Issue
Block a user