.. | .. |
---|
126 | 126 | struct p80211msg_dot11req_mibset *msg, |
---|
127 | 127 | void *data); |
---|
128 | 128 | |
---|
129 | | -static int prism2mib_excludeunencrypted(struct mibrec *mib, |
---|
130 | | - int isget, |
---|
131 | | - struct wlandevice *wlandev, |
---|
132 | | - struct hfa384x *hw, |
---|
133 | | - struct p80211msg_dot11req_mibset *msg, |
---|
134 | | - void *data); |
---|
135 | | - |
---|
136 | | -static int prism2mib_fragmentationthreshold(struct mibrec *mib, |
---|
137 | | - int isget, |
---|
138 | | - struct wlandevice *wlandev, |
---|
139 | | - struct hfa384x *hw, |
---|
140 | | - struct p80211msg_dot11req_mibset *msg, |
---|
141 | | - void *data); |
---|
| 129 | +static int |
---|
| 130 | +prism2mib_fragmentationthreshold(struct mibrec *mib, |
---|
| 131 | + int isget, |
---|
| 132 | + struct wlandevice *wlandev, |
---|
| 133 | + struct hfa384x *hw, |
---|
| 134 | + struct p80211msg_dot11req_mibset *msg, |
---|
| 135 | + void *data); |
---|
142 | 136 | |
---|
143 | 137 | static int prism2mib_priv(struct mibrec *mib, |
---|
144 | 138 | int isget, |
---|
.. | .. |
---|
148 | 142 | |
---|
149 | 143 | static struct mibrec mibtab[] = { |
---|
150 | 144 | /* dot11smt MIB's */ |
---|
151 | | - {DIDmib_dot11smt_dot11WEPDefaultKeysTable_key(1), |
---|
| 145 | + {didmib_dot11smt_wepdefaultkeystable_key(1), |
---|
152 | 146 | F_STA | F_WRITE, |
---|
153 | 147 | HFA384x_RID_CNFWEPDEFAULTKEY0, 0, 0, |
---|
154 | 148 | prism2mib_wepdefaultkey}, |
---|
155 | | - {DIDmib_dot11smt_dot11WEPDefaultKeysTable_key(2), |
---|
| 149 | + {didmib_dot11smt_wepdefaultkeystable_key(2), |
---|
156 | 150 | F_STA | F_WRITE, |
---|
157 | 151 | HFA384x_RID_CNFWEPDEFAULTKEY1, 0, 0, |
---|
158 | 152 | prism2mib_wepdefaultkey}, |
---|
159 | | - {DIDmib_dot11smt_dot11WEPDefaultKeysTable_key(3), |
---|
| 153 | + {didmib_dot11smt_wepdefaultkeystable_key(3), |
---|
160 | 154 | F_STA | F_WRITE, |
---|
161 | 155 | HFA384x_RID_CNFWEPDEFAULTKEY2, 0, 0, |
---|
162 | 156 | prism2mib_wepdefaultkey}, |
---|
163 | | - {DIDmib_dot11smt_dot11WEPDefaultKeysTable_key(4), |
---|
| 157 | + {didmib_dot11smt_wepdefaultkeystable_key(4), |
---|
164 | 158 | F_STA | F_WRITE, |
---|
165 | 159 | HFA384x_RID_CNFWEPDEFAULTKEY3, 0, 0, |
---|
166 | 160 | prism2mib_wepdefaultkey}, |
---|
167 | | - {DIDmib_dot11smt_dot11PrivacyTable_dot11PrivacyInvoked, |
---|
| 161 | + {DIDMIB_DOT11SMT_PRIVACYTABLE_PRIVACYINVOKED, |
---|
168 | 162 | F_STA | F_READ | F_WRITE, |
---|
169 | 163 | HFA384x_RID_CNFWEPFLAGS, HFA384x_WEPFLAGS_PRIVINVOKED, 0, |
---|
170 | 164 | prism2mib_privacyinvoked}, |
---|
171 | | - {DIDmib_dot11smt_dot11PrivacyTable_dot11WEPDefaultKeyID, |
---|
| 165 | + {DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID, |
---|
172 | 166 | F_STA | F_READ | F_WRITE, |
---|
173 | 167 | HFA384x_RID_CNFWEPDEFAULTKEYID, 0, 0, |
---|
174 | 168 | prism2mib_uint32}, |
---|
175 | | - {DIDmib_dot11smt_dot11PrivacyTable_dot11ExcludeUnencrypted, |
---|
| 169 | + {DIDMIB_DOT11SMT_PRIVACYTABLE_EXCLUDEUNENCRYPTED, |
---|
176 | 170 | F_STA | F_READ | F_WRITE, |
---|
177 | 171 | HFA384x_RID_CNFWEPFLAGS, HFA384x_WEPFLAGS_EXCLUDE, 0, |
---|
178 | | - prism2mib_excludeunencrypted}, |
---|
| 172 | + prism2mib_flag}, |
---|
179 | 173 | |
---|
180 | 174 | /* dot11mac MIB's */ |
---|
181 | 175 | |
---|
182 | | - {DIDmib_dot11mac_dot11OperationTable_dot11MACAddress, |
---|
| 176 | + {DIDMIB_DOT11MAC_OPERATIONTABLE_MACADDRESS, |
---|
183 | 177 | F_STA | F_READ | F_WRITE, |
---|
184 | 178 | HFA384x_RID_CNFOWNMACADDR, HFA384x_RID_CNFOWNMACADDR_LEN, 0, |
---|
185 | 179 | prism2mib_bytearea2pstr}, |
---|
186 | | - {DIDmib_dot11mac_dot11OperationTable_dot11RTSThreshold, |
---|
| 180 | + {DIDMIB_DOT11MAC_OPERATIONTABLE_RTSTHRESHOLD, |
---|
187 | 181 | F_STA | F_READ | F_WRITE, |
---|
188 | 182 | HFA384x_RID_RTSTHRESH, 0, 0, |
---|
189 | 183 | prism2mib_uint32}, |
---|
190 | | - {DIDmib_dot11mac_dot11OperationTable_dot11ShortRetryLimit, |
---|
| 184 | + {DIDMIB_DOT11MAC_OPERATIONTABLE_SHORTRETRYLIMIT, |
---|
191 | 185 | F_STA | F_READ, |
---|
192 | 186 | HFA384x_RID_SHORTRETRYLIMIT, 0, 0, |
---|
193 | 187 | prism2mib_uint32}, |
---|
194 | | - {DIDmib_dot11mac_dot11OperationTable_dot11LongRetryLimit, |
---|
| 188 | + {DIDMIB_DOT11MAC_OPERATIONTABLE_LONGRETRYLIMIT, |
---|
195 | 189 | F_STA | F_READ, |
---|
196 | 190 | HFA384x_RID_LONGRETRYLIMIT, 0, 0, |
---|
197 | 191 | prism2mib_uint32}, |
---|
198 | | - {DIDmib_dot11mac_dot11OperationTable_dot11FragmentationThreshold, |
---|
| 192 | + {DIDMIB_DOT11MAC_OPERATIONTABLE_FRAGMENTATIONTHRESHOLD, |
---|
199 | 193 | F_STA | F_READ | F_WRITE, |
---|
200 | 194 | HFA384x_RID_FRAGTHRESH, 0, 0, |
---|
201 | 195 | prism2mib_fragmentationthreshold}, |
---|
202 | | - {DIDmib_dot11mac_dot11OperationTable_dot11MaxTransmitMSDULifetime, |
---|
| 196 | + {DIDMIB_DOT11MAC_OPERATIONTABLE_MAXTRANSMITMSDULIFETIME, |
---|
203 | 197 | F_STA | F_READ, |
---|
204 | 198 | HFA384x_RID_MAXTXLIFETIME, 0, 0, |
---|
205 | 199 | prism2mib_uint32}, |
---|
206 | 200 | |
---|
207 | 201 | /* dot11phy MIB's */ |
---|
208 | 202 | |
---|
209 | | - {DIDmib_dot11phy_dot11PhyDSSSTable_dot11CurrentChannel, |
---|
| 203 | + {DIDMIB_DOT11PHY_DSSSTABLE_CURRENTCHANNEL, |
---|
210 | 204 | F_STA | F_READ, |
---|
211 | 205 | HFA384x_RID_CURRENTCHANNEL, 0, 0, |
---|
212 | 206 | prism2mib_uint32}, |
---|
213 | | - {DIDmib_dot11phy_dot11PhyTxPowerTable_dot11CurrentTxPowerLevel, |
---|
| 207 | + {DIDMIB_DOT11PHY_TXPOWERTABLE_CURRENTTXPOWERLEVEL, |
---|
214 | 208 | F_STA | F_READ | F_WRITE, |
---|
215 | 209 | HFA384x_RID_TXPOWERMAX, 0, 0, |
---|
216 | 210 | prism2mib_uint32}, |
---|
217 | 211 | |
---|
218 | 212 | /* p2Static MIB's */ |
---|
219 | 213 | |
---|
220 | | - {DIDmib_p2_p2Static_p2CnfPortType, |
---|
| 214 | + {DIDMIB_P2_STATIC_CNFPORTTYPE, |
---|
221 | 215 | F_STA | F_READ | F_WRITE, |
---|
222 | 216 | HFA384x_RID_CNFPORTTYPE, 0, 0, |
---|
223 | 217 | prism2mib_uint32}, |
---|
224 | 218 | |
---|
225 | 219 | /* p2MAC MIB's */ |
---|
226 | 220 | |
---|
227 | | - {DIDmib_p2_p2MAC_p2CurrentTxRate, |
---|
| 221 | + {DIDMIB_P2_MAC_CURRENTTXRATE, |
---|
228 | 222 | F_STA | F_READ, |
---|
229 | 223 | HFA384x_RID_CURRENTTXRATE, 0, 0, |
---|
230 | 224 | prism2mib_uint32}, |
---|
231 | 225 | |
---|
232 | 226 | /* And finally, lnx mibs */ |
---|
233 | | - {DIDmib_lnx_lnxConfigTable_lnxRSNAIE, |
---|
| 227 | + {DIDMIB_LNX_CONFIGTABLE_RSNAIE, |
---|
234 | 228 | F_STA | F_READ | F_WRITE, |
---|
235 | 229 | HFA384x_RID_CNFWPADATA, 0, 0, |
---|
236 | 230 | prism2mib_priv}, |
---|
.. | .. |
---|
298 | 292 | /* |
---|
299 | 293 | ** Determine if this is a "mibget" or a "mibset". If this is a |
---|
300 | 294 | ** "mibget", then make sure that the MIB may be read. Otherwise, |
---|
301 | | - ** this is a "mibset" so make make sure that the MIB may be written. |
---|
| 295 | + ** this is a "mibset" so make sure that the MIB may be written. |
---|
302 | 296 | */ |
---|
303 | 297 | |
---|
304 | | - isget = (msg->msgcode == DIDmsg_dot11req_mibget); |
---|
| 298 | + isget = (msg->msgcode == DIDMSG_DOT11REQ_MIBGET); |
---|
305 | 299 | |
---|
306 | 300 | if (isget) { |
---|
307 | 301 | if (!(mib->flag & F_READ)) { |
---|
.. | .. |
---|
593 | 587 | } |
---|
594 | 588 | |
---|
595 | 589 | /* |
---|
596 | | - * prism2mib_excludeunencrypted |
---|
597 | | - * |
---|
598 | | - * Get/set the dot11ExcludeUnencrypted value. |
---|
599 | | - * |
---|
600 | | - * MIB record parameters: |
---|
601 | | - * parm1 Prism2 RID value. |
---|
602 | | - * parm2 Bit value for ExcludeUnencrypted flag. |
---|
603 | | - * parm3 Not used. |
---|
604 | | - * |
---|
605 | | - * Arguments: |
---|
606 | | - * mib MIB record. |
---|
607 | | - * isget MIBGET/MIBSET flag. |
---|
608 | | - * wlandev wlan device structure. |
---|
609 | | - * priv "priv" structure. |
---|
610 | | - * hw "hw" structure. |
---|
611 | | - * msg Message structure. |
---|
612 | | - * data Data buffer. |
---|
613 | | - * |
---|
614 | | - * Returns: |
---|
615 | | - * 0 - Success. |
---|
616 | | - * ~0 - Error. |
---|
617 | | - * |
---|
618 | | - */ |
---|
619 | | - |
---|
620 | | -static int prism2mib_excludeunencrypted(struct mibrec *mib, |
---|
621 | | - int isget, |
---|
622 | | - struct wlandevice *wlandev, |
---|
623 | | - struct hfa384x *hw, |
---|
624 | | - struct p80211msg_dot11req_mibset *msg, |
---|
625 | | - void *data) |
---|
626 | | -{ |
---|
627 | | - return prism2mib_flag(mib, isget, wlandev, hw, msg, data); |
---|
628 | | -} |
---|
629 | | - |
---|
630 | | -/* |
---|
631 | 590 | * prism2mib_fragmentationthreshold |
---|
632 | 591 | * |
---|
633 | 592 | * Get/set the fragmentation threshold. |
---|
.. | .. |
---|
652 | 611 | * |
---|
653 | 612 | */ |
---|
654 | 613 | |
---|
655 | | -static int prism2mib_fragmentationthreshold(struct mibrec *mib, |
---|
656 | | - int isget, |
---|
657 | | - struct wlandevice *wlandev, |
---|
658 | | - struct hfa384x *hw, |
---|
659 | | - struct p80211msg_dot11req_mibset *msg, |
---|
660 | | - void *data) |
---|
| 614 | +static int |
---|
| 615 | +prism2mib_fragmentationthreshold(struct mibrec *mib, |
---|
| 616 | + int isget, |
---|
| 617 | + struct wlandevice *wlandev, |
---|
| 618 | + struct hfa384x *hw, |
---|
| 619 | + struct p80211msg_dot11req_mibset *msg, |
---|
| 620 | + void *data) |
---|
661 | 621 | { |
---|
662 | 622 | u32 *uint32 = data; |
---|
663 | 623 | |
---|
.. | .. |
---|
707 | 667 | struct p80211pstrd *pstr = data; |
---|
708 | 668 | |
---|
709 | 669 | switch (mib->did) { |
---|
710 | | - case DIDmib_lnx_lnxConfigTable_lnxRSNAIE:{ |
---|
711 | | - struct hfa384x_wpa_data wpa; |
---|
| 670 | + case DIDMIB_LNX_CONFIGTABLE_RSNAIE: { |
---|
| 671 | + struct hfa384x_wpa_data wpa; |
---|
712 | 672 | |
---|
713 | | - if (isget) { |
---|
714 | | - hfa384x_drvr_getconfig(hw, |
---|
715 | | - HFA384x_RID_CNFWPADATA, |
---|
716 | | - (u8 *)&wpa, |
---|
717 | | - sizeof(wpa)); |
---|
718 | | - pstr->len = le16_to_cpu(wpa.datalen); |
---|
719 | | - memcpy(pstr->data, wpa.data, pstr->len); |
---|
720 | | - } else { |
---|
721 | | - wpa.datalen = cpu_to_le16(pstr->len); |
---|
722 | | - memcpy(wpa.data, pstr->data, pstr->len); |
---|
| 673 | + if (isget) { |
---|
| 674 | + hfa384x_drvr_getconfig(hw, |
---|
| 675 | + HFA384x_RID_CNFWPADATA, |
---|
| 676 | + (u8 *)&wpa, |
---|
| 677 | + sizeof(wpa)); |
---|
| 678 | + pstr->len = le16_to_cpu(wpa.datalen); |
---|
| 679 | + memcpy(pstr->data, wpa.data, pstr->len); |
---|
| 680 | + } else { |
---|
| 681 | + wpa.datalen = cpu_to_le16(pstr->len); |
---|
| 682 | + memcpy(wpa.data, pstr->data, pstr->len); |
---|
723 | 683 | |
---|
724 | | - hfa384x_drvr_setconfig(hw, |
---|
725 | | - HFA384x_RID_CNFWPADATA, |
---|
726 | | - (u8 *)&wpa, |
---|
727 | | - sizeof(wpa)); |
---|
728 | | - } |
---|
729 | | - break; |
---|
| 684 | + hfa384x_drvr_setconfig(hw, |
---|
| 685 | + HFA384x_RID_CNFWPADATA, |
---|
| 686 | + (u8 *)&wpa, |
---|
| 687 | + sizeof(wpa)); |
---|
730 | 688 | } |
---|
| 689 | + break; |
---|
| 690 | + } |
---|
731 | 691 | default: |
---|
732 | 692 | netdev_err(wlandev->netdev, "Unhandled DID 0x%08x\n", mib->did); |
---|
733 | 693 | } |
---|