Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8192u: Remove unnecessary externs

Using 'extern' is not necessary for function prototypes.

Miscellanea:

o Reflow alignments

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Joe Perches and committed by
Greg Kroah-Hartman
beb12167 ec9a0ffa

+232 -219
+176 -161
drivers/staging/rtl8192u/ieee80211/ieee80211.h
··· 2169 2169 2170 2170 2171 2171 /* ieee80211.c */ 2172 - extern void free_ieee80211(struct net_device *dev); 2173 - extern struct net_device *alloc_ieee80211(int sizeof_priv); 2172 + void free_ieee80211(struct net_device *dev); 2173 + struct net_device *alloc_ieee80211(int sizeof_priv); 2174 2174 2175 - extern int ieee80211_set_encryption(struct ieee80211_device *ieee); 2175 + int ieee80211_set_encryption(struct ieee80211_device *ieee); 2176 2176 2177 2177 /* ieee80211_tx.c */ 2178 2178 2179 - extern int ieee80211_encrypt_fragment( 2180 - struct ieee80211_device *ieee, 2181 - struct sk_buff *frag, 2182 - int hdr_len); 2179 + int ieee80211_encrypt_fragment(struct ieee80211_device *ieee, 2180 + struct sk_buff *frag, int hdr_len); 2183 2181 2184 - extern int ieee80211_xmit(struct sk_buff *skb, 2185 - struct net_device *dev); 2186 - extern void ieee80211_txb_free(struct ieee80211_txb *); 2182 + int ieee80211_xmit(struct sk_buff *skb, struct net_device *dev); 2183 + void ieee80211_txb_free(struct ieee80211_txb *); 2187 2184 2188 2185 2189 2186 /* ieee80211_rx.c */ 2190 - extern int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb, 2191 - struct ieee80211_rx_stats *rx_stats); 2192 - extern void ieee80211_rx_mgt(struct ieee80211_device *ieee, 2193 - struct rtl_80211_hdr_4addr *header, 2194 - struct ieee80211_rx_stats *stats); 2187 + int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb, 2188 + struct ieee80211_rx_stats *rx_stats); 2189 + void ieee80211_rx_mgt(struct ieee80211_device *ieee, 2190 + struct rtl_80211_hdr_4addr *header, 2191 + struct ieee80211_rx_stats *stats); 2195 2192 2196 2193 /* ieee80211_wx.c */ 2197 - extern int ieee80211_wx_get_scan(struct ieee80211_device *ieee, 2198 - struct iw_request_info *info, 2199 - union iwreq_data *wrqu, char *key); 2200 - extern int ieee80211_wx_set_encode(struct ieee80211_device *ieee, 2201 - struct iw_request_info *info, 2202 - union iwreq_data *wrqu, char *key); 2203 - extern int ieee80211_wx_get_encode(struct ieee80211_device *ieee, 2204 - struct iw_request_info *info, 2205 - union iwreq_data *wrqu, char *key); 2206 - extern int ieee80211_wx_get_encode_ext(struct ieee80211_device *ieee, 2194 + int ieee80211_wx_get_scan(struct ieee80211_device *ieee, 2195 + struct iw_request_info *info, 2196 + union iwreq_data *wrqu, char *key); 2197 + int ieee80211_wx_set_encode(struct ieee80211_device *ieee, 2207 2198 struct iw_request_info *info, 2208 - union iwreq_data *wrqu, char *extra); 2209 - extern int ieee80211_wx_set_encode_ext(struct ieee80211_device *ieee, 2199 + union iwreq_data *wrqu, char *key); 2200 + int ieee80211_wx_get_encode(struct ieee80211_device *ieee, 2210 2201 struct iw_request_info *info, 2211 - union iwreq_data *wrqu, char *extra); 2212 - extern int ieee80211_wx_set_auth(struct ieee80211_device *ieee, 2213 - struct iw_request_info *info, 2214 - struct iw_param *data, char *extra); 2215 - extern int ieee80211_wx_set_mlme(struct ieee80211_device *ieee, 2216 - struct iw_request_info *info, 2217 - union iwreq_data *wrqu, char *extra); 2218 - extern int ieee80211_wx_set_gen_ie(struct ieee80211_device *ieee, u8 *ie, size_t len); 2202 + union iwreq_data *wrqu, char *key); 2203 + int ieee80211_wx_get_encode_ext(struct ieee80211_device *ieee, 2204 + struct iw_request_info *info, 2205 + union iwreq_data *wrqu, char *extra); 2206 + int ieee80211_wx_set_encode_ext(struct ieee80211_device *ieee, 2207 + struct iw_request_info *info, 2208 + union iwreq_data *wrqu, char *extra); 2209 + int ieee80211_wx_set_auth(struct ieee80211_device *ieee, 2210 + struct iw_request_info *info, 2211 + struct iw_param *data, char *extra); 2212 + int ieee80211_wx_set_mlme(struct ieee80211_device *ieee, 2213 + struct iw_request_info *info, 2214 + union iwreq_data *wrqu, char *extra); 2215 + int ieee80211_wx_set_gen_ie(struct ieee80211_device *ieee, u8 *ie, size_t len); 2219 2216 2220 2217 /* ieee80211_softmac.c */ 2221 - extern short ieee80211_is_54g(const struct ieee80211_network *net); 2222 - extern short ieee80211_is_shortslot(const struct ieee80211_network *net); 2223 - extern int ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb, 2224 - struct ieee80211_rx_stats *rx_stats, u16 type, 2225 - u16 stype); 2226 - extern void ieee80211_softmac_new_net(struct ieee80211_device *ieee, struct ieee80211_network *net); 2218 + short ieee80211_is_54g(const struct ieee80211_network *net); 2219 + short ieee80211_is_shortslot(const struct ieee80211_network *net); 2220 + int ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, 2221 + struct sk_buff *skb, 2222 + struct ieee80211_rx_stats *rx_stats, 2223 + u16 type, u16 stype); 2224 + void ieee80211_softmac_new_net(struct ieee80211_device *ieee, 2225 + struct ieee80211_network *net); 2227 2226 2228 2227 void SendDisassociation(struct ieee80211_device *ieee, u8 *asSta, u8 asRsn); 2229 - extern void ieee80211_softmac_xmit(struct ieee80211_txb *txb, struct ieee80211_device *ieee); 2228 + void ieee80211_softmac_xmit(struct ieee80211_txb *txb, 2229 + struct ieee80211_device *ieee); 2230 2230 2231 - extern void ieee80211_stop_send_beacons(struct ieee80211_device *ieee); 2232 - extern void notify_wx_assoc_event(struct ieee80211_device *ieee); 2233 - extern void ieee80211_softmac_check_all_nets(struct ieee80211_device *ieee); 2234 - extern void ieee80211_start_bss(struct ieee80211_device *ieee); 2235 - extern void ieee80211_start_master_bss(struct ieee80211_device *ieee); 2236 - extern void ieee80211_start_ibss(struct ieee80211_device *ieee); 2237 - extern void ieee80211_softmac_init(struct ieee80211_device *ieee); 2238 - extern void ieee80211_softmac_free(struct ieee80211_device *ieee); 2239 - extern void ieee80211_associate_abort(struct ieee80211_device *ieee); 2240 - extern void ieee80211_disassociate(struct ieee80211_device *ieee); 2241 - extern void ieee80211_stop_scan(struct ieee80211_device *ieee); 2242 - extern void ieee80211_start_scan_syncro(struct ieee80211_device *ieee); 2243 - extern void ieee80211_check_all_nets(struct ieee80211_device *ieee); 2244 - extern void ieee80211_start_protocol(struct ieee80211_device *ieee); 2245 - extern void ieee80211_stop_protocol(struct ieee80211_device *ieee); 2246 - extern void ieee80211_softmac_start_protocol(struct ieee80211_device *ieee); 2247 - extern void ieee80211_softmac_stop_protocol(struct ieee80211_device *ieee); 2248 - extern void ieee80211_reset_queue(struct ieee80211_device *ieee); 2249 - extern void ieee80211_wake_queue(struct ieee80211_device *ieee); 2250 - extern void ieee80211_stop_queue(struct ieee80211_device *ieee); 2251 - extern struct sk_buff *ieee80211_get_beacon(struct ieee80211_device *ieee); 2252 - extern void ieee80211_start_send_beacons(struct ieee80211_device *ieee); 2253 - extern void ieee80211_stop_send_beacons(struct ieee80211_device *ieee); 2254 - extern int ieee80211_wpa_supplicant_ioctl(struct ieee80211_device *ieee, struct iw_point *p); 2255 - extern void notify_wx_assoc_event(struct ieee80211_device *ieee); 2256 - extern void ieee80211_ps_tx_ack(struct ieee80211_device *ieee, short success); 2231 + void ieee80211_stop_send_beacons(struct ieee80211_device *ieee); 2232 + void notify_wx_assoc_event(struct ieee80211_device *ieee); 2233 + void ieee80211_softmac_check_all_nets(struct ieee80211_device *ieee); 2234 + void ieee80211_start_bss(struct ieee80211_device *ieee); 2235 + void ieee80211_start_master_bss(struct ieee80211_device *ieee); 2236 + void ieee80211_start_ibss(struct ieee80211_device *ieee); 2237 + void ieee80211_softmac_init(struct ieee80211_device *ieee); 2238 + void ieee80211_softmac_free(struct ieee80211_device *ieee); 2239 + void ieee80211_associate_abort(struct ieee80211_device *ieee); 2240 + void ieee80211_disassociate(struct ieee80211_device *ieee); 2241 + void ieee80211_stop_scan(struct ieee80211_device *ieee); 2242 + void ieee80211_start_scan_syncro(struct ieee80211_device *ieee); 2243 + void ieee80211_check_all_nets(struct ieee80211_device *ieee); 2244 + void ieee80211_start_protocol(struct ieee80211_device *ieee); 2245 + void ieee80211_stop_protocol(struct ieee80211_device *ieee); 2246 + void ieee80211_softmac_start_protocol(struct ieee80211_device *ieee); 2247 + void ieee80211_softmac_stop_protocol(struct ieee80211_device *ieee); 2248 + void ieee80211_reset_queue(struct ieee80211_device *ieee); 2249 + void ieee80211_wake_queue(struct ieee80211_device *ieee); 2250 + void ieee80211_stop_queue(struct ieee80211_device *ieee); 2251 + struct sk_buff *ieee80211_get_beacon(struct ieee80211_device *ieee); 2252 + void ieee80211_start_send_beacons(struct ieee80211_device *ieee); 2253 + void ieee80211_stop_send_beacons(struct ieee80211_device *ieee); 2254 + int ieee80211_wpa_supplicant_ioctl(struct ieee80211_device *ieee, 2255 + struct iw_point *p); 2256 + void notify_wx_assoc_event(struct ieee80211_device *ieee); 2257 + void ieee80211_ps_tx_ack(struct ieee80211_device *ieee, short success); 2257 2258 2258 - extern void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee); 2259 + void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee); 2259 2260 2260 2261 /* ieee80211_crypt_ccmp&tkip&wep.c */ 2261 - extern void ieee80211_tkip_null(void); 2262 - extern void ieee80211_wep_null(void); 2263 - extern void ieee80211_ccmp_null(void); 2262 + void ieee80211_tkip_null(void); 2263 + void ieee80211_wep_null(void); 2264 + void ieee80211_ccmp_null(void); 2264 2265 2265 2266 int ieee80211_crypto_init(void); 2266 2267 void ieee80211_crypto_deinit(void); ··· 2274 2273 2275 2274 /* ieee80211_softmac_wx.c */ 2276 2275 2277 - extern int ieee80211_wx_get_wap(struct ieee80211_device *ieee, 2278 - struct iw_request_info *info, 2279 - union iwreq_data *wrqu, char *ext); 2276 + int ieee80211_wx_get_wap(struct ieee80211_device *ieee, 2277 + struct iw_request_info *info, 2278 + union iwreq_data *wrqu, char *ext); 2280 2279 2281 - extern int ieee80211_wx_set_wap(struct ieee80211_device *ieee, 2280 + int ieee80211_wx_set_wap(struct ieee80211_device *ieee, 2282 2281 struct iw_request_info *info, 2283 2282 union iwreq_data *awrq, 2284 2283 char *extra); 2285 2284 2286 - extern int ieee80211_wx_get_essid(struct ieee80211_device *ieee, struct iw_request_info *a,union iwreq_data *wrqu,char *b); 2285 + int ieee80211_wx_get_essid(struct ieee80211_device *ieee, 2286 + struct iw_request_info *a, 2287 + union iwreq_data *wrqu, char *b); 2287 2288 2288 - extern int ieee80211_wx_set_rate(struct ieee80211_device *ieee, 2289 - struct iw_request_info *info, 2290 - union iwreq_data *wrqu, char *extra); 2289 + int ieee80211_wx_set_rate(struct ieee80211_device *ieee, 2290 + struct iw_request_info *info, 2291 + union iwreq_data *wrqu, char *extra); 2291 2292 2292 - extern int ieee80211_wx_get_rate(struct ieee80211_device *ieee, 2293 - struct iw_request_info *info, 2294 - union iwreq_data *wrqu, char *extra); 2293 + int ieee80211_wx_get_rate(struct ieee80211_device *ieee, 2294 + struct iw_request_info *info, 2295 + union iwreq_data *wrqu, char *extra); 2295 2296 2296 - extern int ieee80211_wx_set_mode(struct ieee80211_device *ieee, struct iw_request_info *a, 2297 - union iwreq_data *wrqu, char *b); 2297 + int ieee80211_wx_set_mode(struct ieee80211_device *ieee, 2298 + struct iw_request_info *a, 2299 + union iwreq_data *wrqu, char *b); 2298 2300 2299 - extern int ieee80211_wx_set_scan(struct ieee80211_device *ieee, struct iw_request_info *a, 2300 - union iwreq_data *wrqu, char *b); 2301 + int ieee80211_wx_set_scan(struct ieee80211_device *ieee, 2302 + struct iw_request_info *a, 2303 + union iwreq_data *wrqu, char *b); 2301 2304 2302 - extern int ieee80211_wx_set_essid(struct ieee80211_device *ieee, 2303 - struct iw_request_info *a, 2304 - union iwreq_data *wrqu, char *extra); 2305 + int ieee80211_wx_set_essid(struct ieee80211_device *ieee, 2306 + struct iw_request_info *a, 2307 + union iwreq_data *wrqu, char *extra); 2305 2308 2306 - extern int ieee80211_wx_get_mode(struct ieee80211_device *ieee, struct iw_request_info *a, 2307 - union iwreq_data *wrqu, char *b); 2309 + int ieee80211_wx_get_mode(struct ieee80211_device *ieee, 2310 + struct iw_request_info *a, 2311 + union iwreq_data *wrqu, char *b); 2308 2312 2309 - extern int ieee80211_wx_set_freq(struct ieee80211_device *ieee, struct iw_request_info *a, 2310 - union iwreq_data *wrqu, char *b); 2313 + int ieee80211_wx_set_freq(struct ieee80211_device *ieee, 2314 + struct iw_request_info *a, 2315 + union iwreq_data *wrqu, char *b); 2311 2316 2312 - extern int ieee80211_wx_get_freq(struct ieee80211_device *ieee, struct iw_request_info *a, 2313 - union iwreq_data *wrqu, char *b); 2317 + int ieee80211_wx_get_freq(struct ieee80211_device *ieee, 2318 + struct iw_request_info *a, 2319 + union iwreq_data *wrqu, char *b); 2314 2320 2315 2321 /* ieee80211_module.c */ 2316 - extern int ieee80211_debug_init(void); 2317 - extern void ieee80211_debug_exit(void); 2322 + int ieee80211_debug_init(void); 2323 + void ieee80211_debug_exit(void); 2318 2324 2319 2325 //extern void ieee80211_wx_sync_scan_wq(struct ieee80211_device *ieee); 2320 - extern void ieee80211_wx_sync_scan_wq(struct work_struct *work); 2326 + void ieee80211_wx_sync_scan_wq(struct work_struct *work); 2321 2327 2322 2328 2323 - extern int ieee80211_wx_set_rawtx(struct ieee80211_device *ieee, 2324 - struct iw_request_info *info, 2329 + int ieee80211_wx_set_rawtx(struct ieee80211_device *ieee, 2330 + struct iw_request_info *info, 2325 2331 union iwreq_data *wrqu, char *extra); 2326 2332 2327 - extern int ieee80211_wx_get_name(struct ieee80211_device *ieee, 2328 - struct iw_request_info *info, 2329 - union iwreq_data *wrqu, char *extra); 2333 + int ieee80211_wx_get_name(struct ieee80211_device *ieee, 2334 + struct iw_request_info *info, 2335 + union iwreq_data *wrqu, char *extra); 2330 2336 2331 - extern int ieee80211_wx_set_power(struct ieee80211_device *ieee, 2332 - struct iw_request_info *info, 2333 - union iwreq_data *wrqu, char *extra); 2337 + int ieee80211_wx_set_power(struct ieee80211_device *ieee, 2338 + struct iw_request_info *info, 2339 + union iwreq_data *wrqu, char *extra); 2334 2340 2335 - extern int ieee80211_wx_get_power(struct ieee80211_device *ieee, 2336 - struct iw_request_info *info, 2337 - union iwreq_data *wrqu, char *extra); 2341 + int ieee80211_wx_get_power(struct ieee80211_device *ieee, 2342 + struct iw_request_info *info, 2343 + union iwreq_data *wrqu, char *extra); 2338 2344 2339 - extern int ieee80211_wx_set_rts(struct ieee80211_device *ieee, 2340 - struct iw_request_info *info, 2341 - union iwreq_data *wrqu, char *extra); 2345 + int ieee80211_wx_set_rts(struct ieee80211_device *ieee, 2346 + struct iw_request_info *info, 2347 + union iwreq_data *wrqu, char *extra); 2342 2348 2343 - extern int ieee80211_wx_get_rts(struct ieee80211_device *ieee, 2344 - struct iw_request_info *info, 2345 - union iwreq_data *wrqu, char *extra); 2349 + int ieee80211_wx_get_rts(struct ieee80211_device *ieee, 2350 + struct iw_request_info *info, 2351 + union iwreq_data *wrqu, char *extra); 2346 2352 //HT 2347 2353 #define MAX_RECEIVE_BUFFER_SIZE 9100 // 2348 - extern void HTDebugHTCapability(u8 *CapIE, u8 *TitleString ); 2349 - extern void HTDebugHTInfo(u8 *InfoIE, u8 *TitleString); 2354 + void HTDebugHTCapability(u8 *CapIE, u8 *TitleString); 2355 + void HTDebugHTInfo(u8 *InfoIE, u8 *TitleString); 2350 2356 2351 - void HTSetConnectBwMode(struct ieee80211_device *ieee, HT_CHANNEL_WIDTH Bandwidth, HT_EXTCHNL_OFFSET Offset); 2352 - extern void HTUpdateDefaultSetting(struct ieee80211_device *ieee); 2353 - extern void HTConstructCapabilityElement(struct ieee80211_device *ieee, u8 *posHTCap, u8 *len, u8 isEncrypt); 2354 - extern void HTConstructInfoElement(struct ieee80211_device *ieee, u8 *posHTInfo, u8 *len, u8 isEncrypt); 2355 - extern void HTConstructRT2RTAggElement(struct ieee80211_device *ieee, u8 *posRT2RTAgg, u8 *len); 2356 - extern void HTOnAssocRsp(struct ieee80211_device *ieee); 2357 - extern void HTInitializeHTInfo(struct ieee80211_device *ieee); 2358 - extern void HTInitializeBssDesc(PBSS_HT pBssHT); 2359 - extern void HTResetSelfAndSavePeerSetting(struct ieee80211_device *ieee, struct ieee80211_network *pNetwork); 2360 - extern void HTUpdateSelfAndPeerSetting(struct ieee80211_device *ieee, struct ieee80211_network *pNetwork); 2361 - extern u8 HTGetHighestMCSRate(struct ieee80211_device *ieee, u8 *pMCSRateSet, u8 *pMCSFilter); 2357 + void HTSetConnectBwMode(struct ieee80211_device *ieee, 2358 + HT_CHANNEL_WIDTH Bandwidth, HT_EXTCHNL_OFFSET Offset); 2359 + void HTUpdateDefaultSetting(struct ieee80211_device *ieee); 2360 + void HTConstructCapabilityElement(struct ieee80211_device *ieee, u8 *posHTCap, 2361 + u8 *len, u8 isEncrypt); 2362 + void HTConstructInfoElement(struct ieee80211_device *ieee, u8 *posHTInfo, 2363 + u8 *len, u8 isEncrypt); 2364 + void HTConstructRT2RTAggElement(struct ieee80211_device *ieee, u8 *posRT2RTAgg, 2365 + u8 *len); 2366 + void HTOnAssocRsp(struct ieee80211_device *ieee); 2367 + void HTInitializeHTInfo(struct ieee80211_device *ieee); 2368 + void HTInitializeBssDesc(PBSS_HT pBssHT); 2369 + void HTResetSelfAndSavePeerSetting(struct ieee80211_device *ieee, 2370 + struct ieee80211_network *pNetwork); 2371 + void HTUpdateSelfAndPeerSetting(struct ieee80211_device *ieee, 2372 + struct ieee80211_network *pNetwork); 2373 + u8 HTGetHighestMCSRate(struct ieee80211_device *ieee, 2374 + u8 *pMCSRateSet, u8 *pMCSFilter); 2362 2375 extern u8 MCS_FILTER_ALL[]; 2363 2376 extern u16 MCS_DATA_RATE[2][2][77] ; 2364 - extern u8 HTCCheck(struct ieee80211_device *ieee, u8 *pFrame); 2377 + u8 HTCCheck(struct ieee80211_device *ieee, u8 *pFrame); 2365 2378 //extern void HTSetConnectBwModeCallback(unsigned long data); 2366 - extern void HTResetIOTSetting(PRT_HIGH_THROUGHPUT pHTInfo); 2367 - extern bool IsHTHalfNmodeAPs(struct ieee80211_device *ieee); 2368 - extern u16 HTHalfMcsToDataRate(struct ieee80211_device *ieee, u8 nMcsRate); 2369 - extern u16 HTMcsToDataRate(struct ieee80211_device *ieee, u8 nMcsRate); 2370 - extern u16 TxCountToDataRate(struct ieee80211_device *ieee, u8 nDataRate); 2379 + void HTResetIOTSetting(PRT_HIGH_THROUGHPUT pHTInfo); 2380 + bool IsHTHalfNmodeAPs(struct ieee80211_device *ieee); 2381 + u16 HTHalfMcsToDataRate(struct ieee80211_device *ieee, u8 nMcsRate); 2382 + u16 HTMcsToDataRate(struct ieee80211_device *ieee, u8 nMcsRate); 2383 + u16 TxCountToDataRate(struct ieee80211_device *ieee, u8 nDataRate); 2371 2384 //function in BAPROC.c 2372 - extern int ieee80211_rx_ADDBAReq(struct ieee80211_device *ieee, 2373 - struct sk_buff *skb); 2374 - extern int ieee80211_rx_ADDBARsp(struct ieee80211_device *ieee, 2375 - struct sk_buff *skb); 2376 - extern int ieee80211_rx_DELBA(struct ieee80211_device *ieee,struct sk_buff *skb); 2377 - extern void TsInitAddBA(struct ieee80211_device *ieee, PTX_TS_RECORD pTS, 2378 - u8 Policy, u8 bOverwritePending); 2379 - extern void TsInitDelBA(struct ieee80211_device *ieee, 2380 - PTS_COMMON_INFO pTsCommonInfo, TR_SELECT TxRxSelect); 2381 - extern void BaSetupTimeOut(unsigned long data); 2382 - extern void TxBaInactTimeout(unsigned long data); 2383 - extern void RxBaInactTimeout(unsigned long data); 2384 - extern void ResetBaEntry(PBA_RECORD pBA); 2385 + int ieee80211_rx_ADDBAReq(struct ieee80211_device *ieee, struct sk_buff *skb); 2386 + int ieee80211_rx_ADDBARsp(struct ieee80211_device *ieee, struct sk_buff *skb); 2387 + int ieee80211_rx_DELBA(struct ieee80211_device *ieee, struct sk_buff *skb); 2388 + void TsInitAddBA(struct ieee80211_device *ieee, PTX_TS_RECORD pTS, 2389 + u8 Policy, u8 bOverwritePending); 2390 + void TsInitDelBA(struct ieee80211_device *ieee, 2391 + PTS_COMMON_INFO pTsCommonInfo, TR_SELECT TxRxSelect); 2392 + void BaSetupTimeOut(unsigned long data); 2393 + void TxBaInactTimeout(unsigned long data); 2394 + void RxBaInactTimeout(unsigned long data); 2395 + void ResetBaEntry(PBA_RECORD pBA); 2385 2396 //function in TS.c 2386 - extern bool GetTs( 2397 + bool GetTs( 2387 2398 struct ieee80211_device *ieee, 2388 2399 PTS_COMMON_INFO *ppTS, 2389 2400 u8 *Addr, ··· 2403 2390 TR_SELECT TxRxSelect, //Rx:1, Tx:0 2404 2391 bool bAddNewTs 2405 2392 ); 2406 - extern void TSInitialize(struct ieee80211_device *ieee); 2407 - extern void TsStartAddBaProcess(struct ieee80211_device *ieee, PTX_TS_RECORD pTxTS); 2408 - extern void RemovePeerTS(struct ieee80211_device *ieee, u8 *Addr); 2409 - extern void RemoveAllTS(struct ieee80211_device *ieee); 2393 + void TSInitialize(struct ieee80211_device *ieee); 2394 + void TsStartAddBaProcess(struct ieee80211_device *ieee, PTX_TS_RECORD pTxTS); 2395 + void RemovePeerTS(struct ieee80211_device *ieee, u8 *Addr); 2396 + void RemoveAllTS(struct ieee80211_device *ieee); 2410 2397 void ieee80211_softmac_scan_syncro(struct ieee80211_device *ieee); 2411 2398 2412 2399 extern const long ieee80211_wlan_frequencies[]; ··· 2436 2423 /* For the function is more related to hardware setting, it's better to use the 2437 2424 * ieee handler to refer to it. 2438 2425 */ 2439 - extern short check_nic_enough_desc(struct net_device *dev, int queue_index); 2440 - extern int ieee80211_data_xmit(struct sk_buff *skb, struct net_device *dev); 2441 - extern int ieee80211_parse_info_param(struct ieee80211_device *ieee, 2442 - struct ieee80211_info_element *info_element, 2443 - u16 length, 2444 - struct ieee80211_network *network, 2445 - struct ieee80211_rx_stats *stats); 2426 + short check_nic_enough_desc(struct net_device *dev, int queue_index); 2427 + int ieee80211_data_xmit(struct sk_buff *skb, struct net_device *dev); 2428 + int ieee80211_parse_info_param(struct ieee80211_device *ieee, 2429 + struct ieee80211_info_element *info_element, 2430 + u16 length, 2431 + struct ieee80211_network *network, 2432 + struct ieee80211_rx_stats *stats); 2446 2433 2447 - void ieee80211_indicate_packets(struct ieee80211_device *ieee, struct ieee80211_rxb **prxbIndicateArray,u8 index); 2434 + void ieee80211_indicate_packets(struct ieee80211_device *ieee, 2435 + struct ieee80211_rxb **prxbIndicateArray, 2436 + u8 index); 2448 2437 #define RT_ASOC_RETRY_LIMIT 5 2449 2438 #endif /* IEEE80211_H */
+5 -6
drivers/staging/rtl8192u/r8190_rtl8256.h
··· 14 14 #define RTL8225H 15 15 16 16 #define RTL819X_TOTAL_RF_PATH 2 /* for 8192U */ 17 - extern void PHY_SetRF8256Bandwidth(struct net_device *dev, 18 - HT_CHANNEL_WIDTH Bandwidth); 19 - extern void PHY_RF8256_Config(struct net_device *dev); 20 - extern void phy_RF8256_Config_ParaFile(struct net_device *dev); 21 - extern void PHY_SetRF8256CCKTxPower(struct net_device *dev, u8 powerlevel); 22 - extern void PHY_SetRF8256OFDMTxPower(struct net_device *dev, u8 powerlevel); 17 + void PHY_SetRF8256Bandwidth(struct net_device *dev, HT_CHANNEL_WIDTH Bandwidth); 18 + void PHY_RF8256_Config(struct net_device *dev); 19 + void phy_RF8256_Config_ParaFile(struct net_device *dev); 20 + void PHY_SetRF8256CCKTxPower(struct net_device *dev, u8 powerlevel); 21 + void PHY_SetRF8256OFDMTxPower(struct net_device *dev, u8 powerlevel); 23 22 24 23 #endif
+1 -1
drivers/staging/rtl8192u/r8192U.h
··· 1187 1187 void write_phy_ofdm(struct net_device *dev, u8 adr, u32 data); 1188 1188 void rtl8185_tx_antenna(struct net_device *dev, u8 ant); 1189 1189 void rtl8192_set_rxconf(struct net_device *dev); 1190 - extern void rtl819xusb_beacon_tx(struct net_device *dev, u16 tx_rate); 1190 + void rtl819xusb_beacon_tx(struct net_device *dev, u16 tx_rate); 1191 1191 1192 1192 void EnableHWSecurityConfig8192(struct net_device *dev); 1193 1193 void setKey(struct net_device *dev, u8 EntryNo, u8 KeyIndex, u16 KeyType, u8 *MacAddr, u8 DefaultKey, u32 *KeyContent);
+18 -18
drivers/staging/rtl8192u/r8192U_dm.h
··· 212 212 213 213 214 214 /*--------------------------Exported Function prototype---------------------*/ 215 - extern void init_hal_dm(struct net_device *dev); 216 - extern void deinit_hal_dm(struct net_device *dev); 217 - extern void hal_dm_watchdog(struct net_device *dev); 218 - extern void init_rate_adaptive(struct net_device *dev); 219 - extern void dm_txpower_trackingcallback(struct work_struct *work); 220 - extern void dm_restore_dynamic_mechanism_state(struct net_device *dev); 221 - extern void dm_backup_dynamic_mechanism_state(struct net_device *dev); 222 - extern void dm_change_dynamic_initgain_thresh(struct net_device *dev, 223 - u32 dm_type, u32 dm_value); 224 - extern void dm_force_tx_fw_info(struct net_device *dev, 225 - u32 force_type, u32 force_value); 226 - extern void dm_init_edca_turbo(struct net_device *dev); 227 - extern void dm_rf_operation_test_callback(unsigned long data); 228 - extern void dm_rf_pathcheck_workitemcallback(struct work_struct *work); 229 - extern void dm_fsync_timer_callback(unsigned long data); 230 - extern void dm_cck_txpower_adjust(struct net_device *dev, bool binch14); 231 - extern void dm_shadow_init(struct net_device *dev); 232 - extern void dm_initialize_txpower_tracking(struct net_device *dev); 215 + void init_hal_dm(struct net_device *dev); 216 + void deinit_hal_dm(struct net_device *dev); 217 + void hal_dm_watchdog(struct net_device *dev); 218 + void init_rate_adaptive(struct net_device *dev); 219 + void dm_txpower_trackingcallback(struct work_struct *work); 220 + void dm_restore_dynamic_mechanism_state(struct net_device *dev); 221 + void dm_backup_dynamic_mechanism_state(struct net_device *dev); 222 + void dm_change_dynamic_initgain_thresh(struct net_device *dev, 223 + u32 dm_type, u32 dm_value); 224 + void dm_force_tx_fw_info(struct net_device *dev, 225 + u32 force_type, u32 force_value); 226 + void dm_init_edca_turbo(struct net_device *dev); 227 + void dm_rf_operation_test_callback(unsigned long data); 228 + void dm_rf_pathcheck_workitemcallback(struct work_struct *work); 229 + void dm_fsync_timer_callback(unsigned long data); 230 + void dm_cck_txpower_adjust(struct net_device *dev, bool binch14); 231 + void dm_shadow_init(struct net_device *dev); 232 + void dm_initialize_txpower_tracking(struct net_device *dev); 233 233 /*--------------------------Exported Function prototype---------------------*/ 234 234 235 235
+1 -1
drivers/staging/rtl8192u/r8192U_wx.h
··· 19 19 20 20 extern struct iw_handler_def r8192_wx_handlers_def; 21 21 /* Enable the rtl819x_core.c to share this function, david 2008.9.22 */ 22 - extern struct iw_statistics *r8192_get_wireless_stats(struct net_device *dev); 22 + struct iw_statistics *r8192_get_wireless_stats(struct net_device *dev); 23 23 24 24 #endif
+4 -4
drivers/staging/rtl8192u/r819xU_cmdpkt.h
··· 182 182 RT_STATUS_RESOURCE 183 183 } rt_status, *prt_status; 184 184 185 - extern u32 cmpk_message_handle_rx(struct net_device *dev, 186 - struct ieee80211_rx_stats *pstats); 187 - extern rt_status SendTxCommandPacket(struct net_device *dev, 188 - void *pData, u32 DataLen); 185 + u32 cmpk_message_handle_rx(struct net_device *dev, 186 + struct ieee80211_rx_stats *pstats); 187 + rt_status SendTxCommandPacket(struct net_device *dev, 188 + void *pData, u32 DataLen); 189 189 190 190 191 191 #endif
+27 -28
drivers/staging/rtl8192u/r819xU_phy.h
··· 57 57 #define bMaskLWord 0x0000ffff 58 58 #define bMaskDWord 0xffffffff 59 59 60 - extern u8 rtl8192_phy_CheckIsLegalRFPath(struct net_device *dev, u32 eRFPath); 61 - extern void rtl8192_setBBreg(struct net_device *dev, u32 reg_addr, 62 - u32 bitmask, u32 data); 63 - extern u32 rtl8192_QueryBBReg(struct net_device *dev, u32 reg_addr, 64 - u32 bitmask); 65 - extern void rtl8192_phy_SetRFReg(struct net_device *dev, 66 - RF90_RADIO_PATH_E eRFPath, u32 reg_addr, u32 bitmask, u32 data); 67 - extern u32 rtl8192_phy_QueryRFReg(struct net_device *dev, 68 - RF90_RADIO_PATH_E eRFPath, u32 reg_addr, u32 bitmask); 69 - extern void rtl8192_phy_configmac(struct net_device *dev); 70 - extern void rtl8192_phyConfigBB(struct net_device *dev, u8 ConfigType); 71 - extern u8 rtl8192_phy_checkBBAndRF(struct net_device *dev, 72 - HW90_BLOCK_E CheckBlock, RF90_RADIO_PATH_E eRFPath); 73 - extern void rtl8192_BBConfig(struct net_device *dev); 74 - extern void rtl8192_phy_getTxPower(struct net_device *dev); 75 - extern void rtl8192_phy_setTxPower(struct net_device *dev, u8 channel); 76 - extern void rtl8192_phy_RFConfig(struct net_device *dev); 77 - extern void rtl8192_phy_updateInitGain(struct net_device *dev); 78 - extern u8 rtl8192_phy_ConfigRFWithHeaderFile(struct net_device *dev, 79 - RF90_RADIO_PATH_E eRFPath); 60 + u8 rtl8192_phy_CheckIsLegalRFPath(struct net_device *dev, u32 eRFPath); 61 + void rtl8192_setBBreg(struct net_device *dev, u32 reg_addr, 62 + u32 bitmask, u32 data); 63 + u32 rtl8192_QueryBBReg(struct net_device *dev, u32 reg_addr, u32 bitmask); 64 + void rtl8192_phy_SetRFReg(struct net_device *dev, RF90_RADIO_PATH_E eRFPath, 65 + u32 reg_addr, u32 bitmask, u32 data); 66 + u32 rtl8192_phy_QueryRFReg(struct net_device *dev, RF90_RADIO_PATH_E eRFPath, 67 + u32 reg_addr, u32 bitmask); 68 + void rtl8192_phy_configmac(struct net_device *dev); 69 + void rtl8192_phyConfigBB(struct net_device *dev, u8 ConfigType); 70 + u8 rtl8192_phy_checkBBAndRF(struct net_device *dev, 71 + HW90_BLOCK_E CheckBlock, RF90_RADIO_PATH_E eRFPath); 72 + void rtl8192_BBConfig(struct net_device *dev); 73 + void rtl8192_phy_getTxPower(struct net_device *dev); 74 + void rtl8192_phy_setTxPower(struct net_device *dev, u8 channel); 75 + void rtl8192_phy_RFConfig(struct net_device *dev); 76 + void rtl8192_phy_updateInitGain(struct net_device *dev); 77 + u8 rtl8192_phy_ConfigRFWithHeaderFile(struct net_device *dev, 78 + RF90_RADIO_PATH_E eRFPath); 80 79 81 - extern u8 rtl8192_phy_SwChnl(struct net_device *dev, u8 channel); 82 - extern void rtl8192_SetBWMode(struct net_device *dev, 83 - HT_CHANNEL_WIDTH bandwidth, HT_EXTCHNL_OFFSET offset); 84 - extern void rtl8192_SwChnl_WorkItem(struct net_device *dev); 80 + u8 rtl8192_phy_SwChnl(struct net_device *dev, u8 channel); 81 + void rtl8192_SetBWMode(struct net_device *dev, HT_CHANNEL_WIDTH bandwidth, 82 + HT_EXTCHNL_OFFSET offset); 83 + void rtl8192_SwChnl_WorkItem(struct net_device *dev); 85 84 void rtl8192_SetBWModeWorkItem(struct net_device *dev); 86 - extern bool rtl8192_SetRFPowerState(struct net_device *dev, 87 - RT_RF_POWER_STATE eRFPowerState); 88 - extern void InitialGain819xUsb(struct net_device *dev, u8 Operation); 85 + bool rtl8192_SetRFPowerState(struct net_device *dev, 86 + RT_RF_POWER_STATE eRFPowerState); 87 + void InitialGain819xUsb(struct net_device *dev, u8 Operation); 89 88 90 - extern void InitialGainOperateWorkItemCallBack(struct work_struct *work); 89 + void InitialGainOperateWorkItemCallBack(struct work_struct *work); 91 90 92 91 #endif