Skip to content

Commit

Permalink
mac80211: Fixed a bug in IBSS merge
Browse files Browse the repository at this point in the history
First, both beacons and probe responses can be used for IBSS merge.
Next, sdata->u.ibss.bssid was always true (and thus IBSS merge was
disabled). We should use sdata->u.ibss.fixed_bssid instead.

Signed-off-by: Benoit Papillault <benoit.papillault@free.fr>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Benoit Papillault authored and John W. Linville committed Jan 19, 2010
1 parent ce9058a commit a98bfec
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions net/mac80211/ibss.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,8 @@ static void ieee80211_rx_bss_info(struct ieee80211_sub_if_data *sdata,

/* check if we need to merge IBSS */

/* merge only on beacons (???) */
if (!beacon)
goto put_bss;

/* we use a fixed BSSID */
if (sdata->u.ibss.bssid)
if (sdata->u.ibss.fixed_bssid)
goto put_bss;

/* not an IBSS */
Expand Down

0 comments on commit a98bfec

Please sign in to comment.