--- a/net80211/ieee80211_wireless.c +++ b/net80211/ieee80211_wireless.c @@ -70,7 +70,8 @@ (((_dev)->flags & (IFF_RUNNING|IFF_UP)) == (IFF_RUNNING|IFF_UP)) #define IS_UP_AUTO(_vap) \ (IS_UP((_vap)->iv_dev) && \ - (_vap)->iv_ic->ic_roaming == IEEE80211_ROAMING_AUTO) + (((_vap)->iv_opmode == IEEE80211_M_HOSTAP) || \ + (_vap)->iv_ic->ic_roaming == IEEE80211_ROAMING_AUTO)) #define RESCAN 1 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27) @@ -283,7 +284,7 @@ ieee80211_ioctl_siwencode(struct net_dev vap->iv_flags &= ~IEEE80211_F_DROPUNENC; } } - if ((error == 0) && IS_UP(vap->iv_dev)) { + if ((error == 0) && IS_UP_AUTO(vap) && wepchange) { /* * Device is up and running; we must kick it to * effect the change. If we're enabling/disabling @@ -291,8 +292,7 @@ ieee80211_ioctl_siwencode(struct net_dev * so the 802.11 state machine is reset. Otherwise * the key state should have been updated above. */ - if (wepchange && IS_UP_AUTO(vap)) - ieee80211_new_state(vap, IEEE80211_S_SCAN, 0); + ieee80211_new_state(vap, IEEE80211_S_SCAN, 0); } #ifdef ATH_SUPERG_XR /* set the same params on the xr vap device if exists */ upstream openwrtJames
aboutsummaryrefslogtreecommitdiffstats
path: root/package/uboot-lantiq/easy50712_DDR166M.conf
blob: 351d6a108f4e8ef340d93272be3f28ce45214f87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134