Skip to content

Commit

Permalink
mac80211: fix ieee80211_change_chandef name
Browse files Browse the repository at this point in the history
This should be called ieee80211_change_chanctx() since
it changes the channel context, not a chandef.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed Feb 15, 2013
1 parent cb14502 commit 18942d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/mac80211/chan.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "ieee80211_i.h"
#include "driver-ops.h"

static void ieee80211_change_chandef(struct ieee80211_local *local,
static void ieee80211_change_chanctx(struct ieee80211_local *local,
struct ieee80211_chanctx *ctx,
const struct cfg80211_chan_def *chandef)
{
Expand Down Expand Up @@ -49,7 +49,7 @@ ieee80211_find_chanctx(struct ieee80211_local *local,
if (!compat)
continue;

ieee80211_change_chandef(local, ctx, compat);
ieee80211_change_chanctx(local, ctx, compat);

return ctx;
}
Expand Down Expand Up @@ -175,7 +175,7 @@ static void ieee80211_recalc_chanctx_chantype(struct ieee80211_local *local,
if (WARN_ON_ONCE(!compat))
return;

ieee80211_change_chandef(local, ctx, compat);
ieee80211_change_chanctx(local, ctx, compat);
}

static void ieee80211_unassign_vif_chanctx(struct ieee80211_sub_if_data *sdata,
Expand Down

0 comments on commit 18942d3

Please sign in to comment.