Fixed BSSID step 5: Allow to set channel in adhoc properly
PATCH 1/1 Fixed BSSID step 5: Allow to set channel in adhoc properly
The last patch fixes a bug that it was not possible to set the channel manually in the ad hoc mode properly.
Please commit this patches so that we don't need the proprietary Broadcom driver in the near future anymore.
Signed-off-by Alina Friedrichsen <[email protected]>
net/mac80211/wext.c +4 -2
@@ -230,13 +230,15 @@ {struct ieee80211_sub_if_data *sdata =IEEE80211_DEV_TO_SUB_IF (dev); -if (sdata->vif.type ==NL80211_IFTYPE_STATION ) +if (sdata->vif.type ==NL80211_IFTYPE_ADHOC || + sdata->vif.type ==NL80211_IFTYPE_STATION ) sdata->u.sta.flags &= ~IEEE80211_STA_AUTO_CHANNEL_SEL ;/* freq->e == 0: freq->m = channel; otherwise freq = m * 10^e */ if (freq->e ==0 ) {if (freq->m <0 ) { -if (sdata->vif.type ==NL80211_IFTYPE_STATION ) +if (sdata->vif.type ==NL80211_IFTYPE_ADHOC || + sdata->vif.type ==NL80211_IFTYPE_STATION ) sdata->u.sta.flags |=IEEE80211_STA_AUTO_CHANNEL_SEL ;return 0 ;
Signature · 2 lines
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a
net/mac80211/wext.c +4 -2
@@ -230,13 +230,15 @@ {struct ieee80211_sub_if_data *sdata =IEEE80211_DEV_TO_SUB_IF (dev); -if (sdata->vif.type ==NL80211_IFTYPE_STATION ) +if (sdata->vif.type ==NL80211_IFTYPE_ADHOC || + sdata->vif.type ==NL80211_IFTYPE_STATION ) sdata->u.sta.flags &= ~IEEE80211_STA_AUTO_CHANNEL_SEL ;/* freq->e == 0: freq->m = channel; otherwise freq = m * 10^e */ if (freq->e ==0 ) {if (freq->m <0 ) { -if (sdata->vif.type ==NL80211_IFTYPE_STATION ) +if (sdata->vif.type ==NL80211_IFTYPE_ADHOC || + sdata->vif.type ==NL80211_IFTYPE_STATION ) sdata->u.sta.flags |=IEEE80211_STA_AUTO_CHANNEL_SEL ;return 0 ;