Skip to content

Commit

Permalink
cfg80211: track ibss fixed channel
Browse files Browse the repository at this point in the history
IBSS may hop between channels. It is necessary to
account this special case when considering
interface combinations.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Michal Kazior authored and Johannes Berg committed Jun 29, 2012
1 parent f4489eb commit c30a3d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/net/cfg80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -2411,6 +2411,8 @@ struct wireless_dev {
/* for AP and mesh channel tracking */
struct ieee80211_channel *channel;

bool ibss_fixed;

bool ps;
int ps_timeout;

Expand Down
1 change: 1 addition & 0 deletions net/wireless/ibss.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ int __cfg80211_join_ibss(struct cfg80211_registered_device *rdev,
kfree(wdev->connect_keys);
wdev->connect_keys = connkeys;

wdev->ibss_fixed = params->channel_fixed;
#ifdef CONFIG_CFG80211_WEXT
wdev->wext.ibss.channel = params->channel;
#endif
Expand Down

0 comments on commit c30a3d3

Please sign in to comment.