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

Staging: rtl8192e: Remove extern and redundant declarations

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Mike McCormack and committed by
Greg Kroah-Hartman
51ae5d55 196bd687

+131 -144
+104 -105
drivers/staging/rtl8192e/ieee80211.h
··· 2420 2420 2421 2421 2422 2422 /* ieee80211.c */ 2423 - extern void free_ieee80211(struct net_device *dev); 2424 - extern struct net_device *alloc_ieee80211(int sizeof_priv); 2423 + void free_ieee80211(struct net_device *dev); 2424 + struct net_device *alloc_ieee80211(int sizeof_priv); 2425 2425 2426 - extern int ieee80211_set_encryption(struct ieee80211_device *ieee); 2426 + int ieee80211_set_encryption(struct ieee80211_device *ieee); 2427 2427 2428 2428 /* ieee80211_tx.c */ 2429 2429 2430 - extern int ieee80211_encrypt_fragment( 2430 + int ieee80211_encrypt_fragment( 2431 2431 struct ieee80211_device *ieee, 2432 2432 struct sk_buff *frag, 2433 2433 int hdr_len); 2434 2434 2435 - extern int ieee80211_rtl_xmit(struct sk_buff *skb, 2435 + int ieee80211_rtl_xmit(struct sk_buff *skb, 2436 2436 struct net_device *dev); 2437 - extern void ieee80211_txb_free(struct ieee80211_txb *); 2437 + void ieee80211_txb_free(struct ieee80211_txb *); 2438 2438 2439 2439 2440 2440 /* ieee80211_rx.c */ 2441 - extern int ieee80211_rtl_rx(struct ieee80211_device *ieee, struct sk_buff *skb, 2441 + int ieee80211_rtl_rx(struct ieee80211_device *ieee, struct sk_buff *skb, 2442 2442 struct ieee80211_rx_stats *rx_stats); 2443 - extern void ieee80211_rx_mgt(struct ieee80211_device *ieee, 2443 + void ieee80211_rx_mgt(struct ieee80211_device *ieee, 2444 2444 struct ieee80211_hdr_4addr *header, 2445 2445 struct ieee80211_rx_stats *stats); 2446 2446 2447 2447 /* ieee80211_wx.c */ 2448 - extern int ieee80211_wx_get_scan(struct ieee80211_device *ieee, 2448 + int ieee80211_wx_get_scan(struct ieee80211_device *ieee, 2449 2449 struct iw_request_info *info, 2450 2450 union iwreq_data *wrqu, char *key); 2451 - extern int ieee80211_wx_set_encode(struct ieee80211_device *ieee, 2451 + int ieee80211_wx_set_encode(struct ieee80211_device *ieee, 2452 2452 struct iw_request_info *info, 2453 2453 union iwreq_data *wrqu, char *key); 2454 - extern int ieee80211_wx_get_encode(struct ieee80211_device *ieee, 2454 + int ieee80211_wx_get_encode(struct ieee80211_device *ieee, 2455 2455 struct iw_request_info *info, 2456 2456 union iwreq_data *wrqu, char *key); 2457 2457 #if WIRELESS_EXT >= 18 2458 - extern int ieee80211_wx_get_encode_ext(struct ieee80211_device *ieee, 2458 + int ieee80211_wx_get_encode_ext(struct ieee80211_device *ieee, 2459 2459 struct iw_request_info *info, 2460 2460 union iwreq_data* wrqu, char *extra); 2461 - extern int ieee80211_wx_set_encode_ext(struct ieee80211_device *ieee, 2461 + int ieee80211_wx_set_encode_ext(struct ieee80211_device *ieee, 2462 2462 struct iw_request_info *info, 2463 2463 union iwreq_data* wrqu, char *extra); 2464 - extern int ieee80211_wx_set_auth(struct ieee80211_device *ieee, 2464 + int ieee80211_wx_set_auth(struct ieee80211_device *ieee, 2465 2465 struct iw_request_info *info, 2466 2466 struct iw_param *data, char *extra); 2467 - extern int ieee80211_wx_set_mlme(struct ieee80211_device *ieee, 2467 + int ieee80211_wx_set_mlme(struct ieee80211_device *ieee, 2468 2468 struct iw_request_info *info, 2469 2469 union iwreq_data *wrqu, char *extra); 2470 2470 #endif 2471 - extern int ieee80211_wx_set_gen_ie(struct ieee80211_device *ieee, u8 *ie, size_t len); 2471 + int ieee80211_wx_set_gen_ie(struct ieee80211_device *ieee, u8 *ie, size_t len); 2472 2472 2473 2473 /* ieee80211_softmac.c */ 2474 - extern short ieee80211_is_54g(struct ieee80211_network net); 2475 - extern short ieee80211_is_shortslot(struct ieee80211_network net); 2476 - extern int ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb, 2474 + short ieee80211_is_54g(struct ieee80211_network net); 2475 + short ieee80211_is_shortslot(struct ieee80211_network net); 2476 + int ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb, 2477 2477 struct ieee80211_rx_stats *rx_stats, u16 type, 2478 2478 u16 stype); 2479 - extern void ieee80211_softmac_new_net(struct ieee80211_device *ieee, struct ieee80211_network *net); 2479 + void ieee80211_softmac_new_net(struct ieee80211_device *ieee, struct ieee80211_network *net); 2480 2480 2481 2481 void SendDisassociation(struct ieee80211_device *ieee, u8* asSta, u8 asRsn); 2482 - extern void ieee80211_softmac_xmit(struct ieee80211_txb *txb, struct ieee80211_device *ieee); 2482 + void ieee80211_softmac_xmit(struct ieee80211_txb *txb, struct ieee80211_device *ieee); 2483 2483 2484 - extern void ieee80211_stop_send_beacons(struct ieee80211_device *ieee); 2485 - extern void notify_wx_assoc_event(struct ieee80211_device *ieee); 2486 - extern void ieee80211_softmac_check_all_nets(struct ieee80211_device *ieee); 2487 - extern void ieee80211_start_bss(struct ieee80211_device *ieee); 2488 - extern void ieee80211_start_master_bss(struct ieee80211_device *ieee); 2489 - extern void ieee80211_start_ibss(struct ieee80211_device *ieee); 2490 - extern void ieee80211_softmac_init(struct ieee80211_device *ieee); 2491 - extern void ieee80211_softmac_free(struct ieee80211_device *ieee); 2492 - extern void ieee80211_associate_abort(struct ieee80211_device *ieee); 2493 - extern void ieee80211_disassociate(struct ieee80211_device *ieee); 2494 - extern void ieee80211_stop_scan(struct ieee80211_device *ieee); 2495 - extern void ieee80211_start_scan_syncro(struct ieee80211_device *ieee); 2496 - extern void ieee80211_check_all_nets(struct ieee80211_device *ieee); 2497 - extern void ieee80211_start_protocol(struct ieee80211_device *ieee); 2498 - extern void ieee80211_stop_protocol(struct ieee80211_device *ieee); 2499 - extern void ieee80211_softmac_start_protocol(struct ieee80211_device *ieee); 2500 - extern void ieee80211_softmac_stop_protocol(struct ieee80211_device *ieee); 2501 - extern void ieee80211_reset_queue(struct ieee80211_device *ieee); 2502 - extern void ieee80211_rtl_wake_queue(struct ieee80211_device *ieee); 2503 - extern void ieee80211_rtl_stop_queue(struct ieee80211_device *ieee); 2504 - extern struct sk_buff *ieee80211_get_beacon(struct ieee80211_device *ieee); 2505 - extern void ieee80211_start_send_beacons(struct ieee80211_device *ieee); 2506 - extern void ieee80211_stop_send_beacons(struct ieee80211_device *ieee); 2507 - extern int ieee80211_wpa_supplicant_ioctl(struct ieee80211_device *ieee, struct iw_point *p); 2508 - extern void notify_wx_assoc_event(struct ieee80211_device *ieee); 2509 - extern void ieee80211_ps_tx_ack(struct ieee80211_device *ieee, short success); 2484 + void ieee80211_stop_send_beacons(struct ieee80211_device *ieee); 2485 + void notify_wx_assoc_event(struct ieee80211_device *ieee); 2486 + void ieee80211_softmac_check_all_nets(struct ieee80211_device *ieee); 2487 + void ieee80211_start_bss(struct ieee80211_device *ieee); 2488 + void ieee80211_start_master_bss(struct ieee80211_device *ieee); 2489 + void ieee80211_start_ibss(struct ieee80211_device *ieee); 2490 + void ieee80211_softmac_init(struct ieee80211_device *ieee); 2491 + void ieee80211_softmac_free(struct ieee80211_device *ieee); 2492 + void ieee80211_associate_abort(struct ieee80211_device *ieee); 2493 + void ieee80211_disassociate(struct ieee80211_device *ieee); 2494 + void ieee80211_stop_scan(struct ieee80211_device *ieee); 2495 + void ieee80211_start_scan_syncro(struct ieee80211_device *ieee); 2496 + void ieee80211_check_all_nets(struct ieee80211_device *ieee); 2497 + void ieee80211_start_protocol(struct ieee80211_device *ieee); 2498 + void ieee80211_stop_protocol(struct ieee80211_device *ieee); 2499 + void ieee80211_softmac_start_protocol(struct ieee80211_device *ieee); 2500 + void ieee80211_softmac_stop_protocol(struct ieee80211_device *ieee); 2501 + void ieee80211_reset_queue(struct ieee80211_device *ieee); 2502 + void ieee80211_rtl_wake_queue(struct ieee80211_device *ieee); 2503 + void ieee80211_rtl_stop_queue(struct ieee80211_device *ieee); 2504 + struct sk_buff *ieee80211_get_beacon(struct ieee80211_device *ieee); 2505 + void ieee80211_start_send_beacons(struct ieee80211_device *ieee); 2506 + void ieee80211_stop_send_beacons(struct ieee80211_device *ieee); 2507 + int ieee80211_wpa_supplicant_ioctl(struct ieee80211_device *ieee, struct iw_point *p); 2508 + void notify_wx_assoc_event(struct ieee80211_device *ieee); 2509 + void ieee80211_ps_tx_ack(struct ieee80211_device *ieee, short success); 2510 2510 2511 - extern void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee); 2511 + void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee); 2512 2512 2513 2513 /* ieee80211_crypt_ccmp&tkip&wep.c */ 2514 - extern void ieee80211_tkip_null(void); 2515 - extern void ieee80211_wep_null(void); 2516 - extern void ieee80211_ccmp_null(void); 2514 + void ieee80211_tkip_null(void); 2515 + void ieee80211_wep_null(void); 2516 + void ieee80211_ccmp_null(void); 2517 2517 2518 2518 /* ieee80211_softmac_wx.c */ 2519 2519 2520 - extern int ieee80211_wx_get_wap(struct ieee80211_device *ieee, 2520 + int ieee80211_wx_get_wap(struct ieee80211_device *ieee, 2521 2521 struct iw_request_info *info, 2522 2522 union iwreq_data *wrqu, char *ext); 2523 2523 2524 - extern int ieee80211_wx_set_wap(struct ieee80211_device *ieee, 2524 + int ieee80211_wx_set_wap(struct ieee80211_device *ieee, 2525 2525 struct iw_request_info *info, 2526 2526 union iwreq_data *awrq, 2527 2527 char *extra); 2528 2528 2529 - extern int ieee80211_wx_get_essid(struct ieee80211_device *ieee, struct iw_request_info *a,union iwreq_data *wrqu,char *b); 2529 + int ieee80211_wx_get_essid(struct ieee80211_device *ieee, struct iw_request_info *a,union iwreq_data *wrqu,char *b); 2530 2530 2531 - extern int ieee80211_wx_set_rate(struct ieee80211_device *ieee, 2531 + int ieee80211_wx_set_rate(struct ieee80211_device *ieee, 2532 2532 struct iw_request_info *info, 2533 2533 union iwreq_data *wrqu, char *extra); 2534 2534 2535 - extern int ieee80211_wx_get_rate(struct ieee80211_device *ieee, 2535 + int ieee80211_wx_get_rate(struct ieee80211_device *ieee, 2536 2536 struct iw_request_info *info, 2537 2537 union iwreq_data *wrqu, char *extra); 2538 2538 2539 - extern int ieee80211_wx_set_mode(struct ieee80211_device *ieee, struct iw_request_info *a, 2539 + int ieee80211_wx_set_mode(struct ieee80211_device *ieee, struct iw_request_info *a, 2540 2540 union iwreq_data *wrqu, char *b); 2541 2541 2542 - extern int ieee80211_wx_set_scan(struct ieee80211_device *ieee, struct iw_request_info *a, 2542 + int ieee80211_wx_set_scan(struct ieee80211_device *ieee, struct iw_request_info *a, 2543 2543 union iwreq_data *wrqu, char *b); 2544 2544 2545 - extern int ieee80211_wx_set_essid(struct ieee80211_device *ieee, 2545 + int ieee80211_wx_set_essid(struct ieee80211_device *ieee, 2546 2546 struct iw_request_info *a, 2547 2547 union iwreq_data *wrqu, char *extra); 2548 2548 2549 - extern int ieee80211_wx_get_mode(struct ieee80211_device *ieee, struct iw_request_info *a, 2549 + int ieee80211_wx_get_mode(struct ieee80211_device *ieee, struct iw_request_info *a, 2550 2550 union iwreq_data *wrqu, char *b); 2551 2551 2552 - extern int ieee80211_wx_set_freq(struct ieee80211_device *ieee, struct iw_request_info *a, 2552 + int ieee80211_wx_set_freq(struct ieee80211_device *ieee, struct iw_request_info *a, 2553 2553 union iwreq_data *wrqu, char *b); 2554 2554 2555 - extern int ieee80211_wx_get_freq(struct ieee80211_device *ieee, struct iw_request_info *a, 2555 + int ieee80211_wx_get_freq(struct ieee80211_device *ieee, struct iw_request_info *a, 2556 2556 union iwreq_data *wrqu, char *b); 2557 2557 2558 - //extern void ieee80211_wx_sync_scan_wq(struct ieee80211_device *ieee); 2559 - extern void ieee80211_wx_sync_scan_wq(struct work_struct *work); 2558 + void ieee80211_wx_sync_scan_wq(struct work_struct *work); 2560 2559 2561 2560 2562 - extern int ieee80211_wx_set_rawtx(struct ieee80211_device *ieee, 2561 + int ieee80211_wx_set_rawtx(struct ieee80211_device *ieee, 2563 2562 struct iw_request_info *info, 2564 2563 union iwreq_data *wrqu, char *extra); 2565 2564 2566 - extern int ieee80211_wx_get_name(struct ieee80211_device *ieee, 2565 + int ieee80211_wx_get_name(struct ieee80211_device *ieee, 2567 2566 struct iw_request_info *info, 2568 2567 union iwreq_data *wrqu, char *extra); 2569 2568 2570 - extern int ieee80211_wx_set_power(struct ieee80211_device *ieee, 2569 + int ieee80211_wx_set_power(struct ieee80211_device *ieee, 2571 2570 struct iw_request_info *info, 2572 2571 union iwreq_data *wrqu, char *extra); 2573 2572 2574 - extern int ieee80211_wx_get_power(struct ieee80211_device *ieee, 2573 + int ieee80211_wx_get_power(struct ieee80211_device *ieee, 2575 2574 struct iw_request_info *info, 2576 2575 union iwreq_data *wrqu, char *extra); 2577 2576 2578 - extern int ieee80211_wx_set_rts(struct ieee80211_device *ieee, 2577 + int ieee80211_wx_set_rts(struct ieee80211_device *ieee, 2579 2578 struct iw_request_info *info, 2580 2579 union iwreq_data *wrqu, char *extra); 2581 2580 2582 - extern int ieee80211_wx_get_rts(struct ieee80211_device *ieee, 2581 + int ieee80211_wx_get_rts(struct ieee80211_device *ieee, 2583 2582 struct iw_request_info *info, 2584 2583 union iwreq_data *wrqu, char *extra); 2585 2584 //HT 2586 2585 #define MAX_RECEIVE_BUFFER_SIZE 9100 // 2587 - extern void HTDebugHTCapability(u8* CapIE, u8* TitleString ); 2588 - extern void HTDebugHTInfo(u8* InfoIE, u8* TitleString); 2586 + void HTDebugHTCapability(u8* CapIE, u8* TitleString ); 2587 + void HTDebugHTInfo(u8* InfoIE, u8* TitleString); 2589 2588 2590 2589 void HTSetConnectBwMode(struct ieee80211_device* ieee, HT_CHANNEL_WIDTH Bandwidth, HT_EXTCHNL_OFFSET Offset); 2591 - extern void HTUpdateDefaultSetting(struct ieee80211_device* ieee); 2592 - extern void HTConstructCapabilityElement(struct ieee80211_device* ieee, u8* posHTCap, u8* len, u8 isEncrypt); 2593 - extern void HTConstructInfoElement(struct ieee80211_device* ieee, u8* posHTInfo, u8* len, u8 isEncrypt); 2594 - extern void HTConstructRT2RTAggElement(struct ieee80211_device* ieee, u8* posRT2RTAgg, u8* len); 2595 - extern void HTOnAssocRsp(struct ieee80211_device *ieee); 2596 - extern void HTInitializeHTInfo(struct ieee80211_device* ieee); 2597 - extern void HTInitializeBssDesc(PBSS_HT pBssHT); 2598 - extern void HTResetSelfAndSavePeerSetting(struct ieee80211_device* ieee, struct ieee80211_network * pNetwork); 2599 - extern void HTUpdateSelfAndPeerSetting(struct ieee80211_device* ieee, struct ieee80211_network * pNetwork); 2600 - extern u8 HTGetHighestMCSRate(struct ieee80211_device* ieee, u8* pMCSRateSet, u8* pMCSFilter); 2590 + void HTUpdateDefaultSetting(struct ieee80211_device* ieee); 2591 + void HTConstructCapabilityElement(struct ieee80211_device* ieee, u8* posHTCap, u8* len, u8 isEncrypt); 2592 + void HTConstructInfoElement(struct ieee80211_device* ieee, u8* posHTInfo, u8* len, u8 isEncrypt); 2593 + void HTConstructRT2RTAggElement(struct ieee80211_device* ieee, u8* posRT2RTAgg, u8* len); 2594 + void HTOnAssocRsp(struct ieee80211_device *ieee); 2595 + void HTInitializeHTInfo(struct ieee80211_device* ieee); 2596 + void HTInitializeBssDesc(PBSS_HT pBssHT); 2597 + void HTResetSelfAndSavePeerSetting(struct ieee80211_device* ieee, struct ieee80211_network * pNetwork); 2598 + void HTUpdateSelfAndPeerSetting(struct ieee80211_device* ieee, struct ieee80211_network * pNetwork); 2599 + u8 HTGetHighestMCSRate(struct ieee80211_device* ieee, u8* pMCSRateSet, u8* pMCSFilter); 2601 2600 extern u8 MCS_FILTER_ALL[]; 2602 2601 extern u16 MCS_DATA_RATE[2][2][77] ; 2603 - extern u8 HTCCheck(struct ieee80211_device* ieee, u8* pFrame); 2602 + u8 HTCCheck(struct ieee80211_device* ieee, u8* pFrame); 2604 2603 //extern void HTSetConnectBwModeCallback(unsigned long data); 2605 - extern void HTResetIOTSetting(PRT_HIGH_THROUGHPUT pHTInfo); 2606 - extern bool IsHTHalfNmodeAPs(struct ieee80211_device* ieee); 2607 - extern u16 HTHalfMcsToDataRate(struct ieee80211_device* ieee, u8 nMcsRate); 2608 - extern u16 HTMcsToDataRate( struct ieee80211_device* ieee, u8 nMcsRate); 2609 - extern u16 TxCountToDataRate( struct ieee80211_device* ieee, u8 nDataRate); 2604 + void HTResetIOTSetting(PRT_HIGH_THROUGHPUT pHTInfo); 2605 + bool IsHTHalfNmodeAPs(struct ieee80211_device* ieee); 2606 + u16 HTHalfMcsToDataRate(struct ieee80211_device* ieee, u8 nMcsRate); 2607 + u16 HTMcsToDataRate( struct ieee80211_device* ieee, u8 nMcsRate); 2608 + u16 TxCountToDataRate( struct ieee80211_device* ieee, u8 nDataRate); 2610 2609 //function in BAPROC.c 2611 - extern int ieee80211_rx_ADDBAReq( struct ieee80211_device* ieee, struct sk_buff *skb); 2612 - extern int ieee80211_rx_ADDBARsp( struct ieee80211_device* ieee, struct sk_buff *skb); 2613 - extern int ieee80211_rx_DELBA(struct ieee80211_device* ieee,struct sk_buff *skb); 2614 - extern void TsInitAddBA( struct ieee80211_device* ieee, PTX_TS_RECORD pTS, u8 Policy, u8 bOverwritePending); 2615 - extern void TsInitDelBA( struct ieee80211_device* ieee, PTS_COMMON_INFO pTsCommonInfo, TR_SELECT TxRxSelect); 2616 - extern void BaSetupTimeOut(unsigned long data); 2617 - extern void TxBaInactTimeout(unsigned long data); 2618 - extern void RxBaInactTimeout(unsigned long data); 2619 - extern void ResetBaEntry( PBA_RECORD pBA); 2610 + int ieee80211_rx_ADDBAReq( struct ieee80211_device* ieee, struct sk_buff *skb); 2611 + int ieee80211_rx_ADDBARsp( struct ieee80211_device* ieee, struct sk_buff *skb); 2612 + int ieee80211_rx_DELBA(struct ieee80211_device* ieee,struct sk_buff *skb); 2613 + void TsInitAddBA( struct ieee80211_device* ieee, PTX_TS_RECORD pTS, u8 Policy, u8 bOverwritePending); 2614 + void TsInitDelBA( struct ieee80211_device* ieee, PTS_COMMON_INFO pTsCommonInfo, TR_SELECT TxRxSelect); 2615 + void BaSetupTimeOut(unsigned long data); 2616 + void TxBaInactTimeout(unsigned long data); 2617 + void RxBaInactTimeout(unsigned long data); 2618 + void ResetBaEntry( PBA_RECORD pBA); 2620 2619 //function in TS.c 2621 - extern bool GetTs( 2620 + bool GetTs( 2622 2621 struct ieee80211_device* ieee, 2623 2622 PTS_COMMON_INFO *ppTS, 2624 2623 u8* Addr, ··· 2625 2626 TR_SELECT TxRxSelect, //Rx:1, Tx:0 2626 2627 bool bAddNewTs 2627 2628 ); 2628 - extern void TSInitialize(struct ieee80211_device *ieee); 2629 - extern void TsStartAddBaProcess(struct ieee80211_device* ieee, PTX_TS_RECORD pTxTS); 2630 - extern void RemovePeerTS(struct ieee80211_device* ieee, u8* Addr); 2631 - extern void RemoveAllTS(struct ieee80211_device* ieee); 2629 + void TSInitialize(struct ieee80211_device *ieee); 2630 + void TsStartAddBaProcess(struct ieee80211_device* ieee, PTX_TS_RECORD pTxTS); 2631 + void RemovePeerTS(struct ieee80211_device* ieee, u8* Addr); 2632 + void RemoveAllTS(struct ieee80211_device* ieee); 2632 2633 void ieee80211_softmac_scan_syncro(struct ieee80211_device *ieee); 2633 2634 2634 2635 extern const long ieee80211_wlan_frequencies[]; ··· 2670 2671 /* For the function is more related to hardware setting, it's better to use the 2671 2672 * ieee handler to refer to it. 2672 2673 */ 2673 - extern short check_nic_enough_desc(struct net_device *dev, int queue_index); 2674 - extern int ieee80211_data_xmit(struct sk_buff *skb, struct net_device *dev); 2675 - extern int ieee80211_parse_info_param(struct ieee80211_device *ieee, 2674 + short check_nic_enough_desc(struct net_device *dev, int queue_index); 2675 + int ieee80211_data_xmit(struct sk_buff *skb, struct net_device *dev); 2676 + int ieee80211_parse_info_param(struct ieee80211_device *ieee, 2676 2677 struct ieee80211_info_element *info_element, 2677 2678 u16 length, 2678 2679 struct ieee80211_network *network,
+6 -6
drivers/staging/rtl8192e/r8190_rtl8256.h
··· 16 16 #define RTL819X_TOTAL_RF_PATH 2 /* for 8192E */ 17 17 #endif 18 18 19 - extern void PHY_SetRF8256Bandwidth(struct net_device *dev, 19 + void PHY_SetRF8256Bandwidth(struct net_device *dev, 20 20 HT_CHANNEL_WIDTH Bandwidth); 21 21 22 - extern RT_STATUS PHY_RF8256_Config(struct net_device *dev); 22 + RT_STATUS PHY_RF8256_Config(struct net_device *dev); 23 23 24 - extern RT_STATUS phy_RF8256_Config_ParaFile(struct net_device *dev); 24 + RT_STATUS phy_RF8256_Config_ParaFile(struct net_device *dev); 25 25 26 - extern void PHY_SetRF8256CCKTxPower(struct net_device *dev, u8 powerlevel); 27 - extern void PHY_SetRF8256OFDMTxPower(struct net_device *dev, u8 powerlevel); 26 + void PHY_SetRF8256CCKTxPower(struct net_device *dev, u8 powerlevel); 27 + void PHY_SetRF8256OFDMTxPower(struct net_device *dev, u8 powerlevel); 28 28 29 - extern bool MgntActSet_RF_State(struct net_device *dev, 29 + bool MgntActSet_RF_State(struct net_device *dev, 30 30 RT_RF_POWER_STATE StateToSet, 31 31 RT_RF_CHANGE_SOURCE ChangeSource); 32 32
+1 -1
drivers/staging/rtl8192e/r8192E_wx.h
··· 17 17 //#include <linux/wireless.h> 18 18 extern struct iw_handler_def r8192_wx_handlers_def; 19 19 /* Enable the rtl819x_core.c to share this function, david 2008.9.22 */ 20 - extern struct iw_statistics *r8192_get_wireless_stats(struct net_device *dev); 20 + struct iw_statistics *r8192_get_wireless_stats(struct net_device *dev); 21 21 #endif
+1 -1
drivers/staging/rtl8192e/r819xE_cmdpkt.h
··· 201 201 RX_CMD_ELE_MAX 202 202 }cmpk_element_e; 203 203 204 - extern u32 cmpk_message_handle_rx(struct net_device *dev, struct ieee80211_rx_stats * pstats); 204 + u32 cmpk_message_handle_rx(struct net_device *dev, struct ieee80211_rx_stats * pstats); 205 205 206 206 207 207 #endif
+19 -31
drivers/staging/rtl8192e/r819xE_phy.h
··· 102 102 #define bMaskLWord 0x0000ffff 103 103 #define bMaskDWord 0xffffffff 104 104 105 - /*extern u32 rtl8192_CalculateBitShift(u32 dwBitMask); 105 + u8 rtl8192_phy_CheckIsLegalRFPath(struct net_device *dev, u32 eRFPath); 106 106 107 - extern u32 rtl8192_phy_RFSerialRead(struct net_device *dev, 108 - RF90_RADIO_PATH_E eRFPath, u32 Offset); 109 - 110 - extern void rtl8192_phy_RFSerialWrite(struct net_device *dev, 111 - RF90_RADIO_PATH_E eRFPath, u32 Offset, u32 Data); 112 - 113 - extern void rtl8192_InitBBRFRegDef(struct net_device *dev); 114 - 115 - extern RT_STATUS rtl8192_BB_Config_ParaFile(struct net_device *dev); */ 116 - 117 - extern u8 rtl8192_phy_CheckIsLegalRFPath(struct net_device *dev, u32 eRFPath); 118 - 119 - extern void rtl8192_setBBreg(struct net_device *dev, u32 dwRegAddr, 107 + void rtl8192_setBBreg(struct net_device *dev, u32 dwRegAddr, 120 108 u32 dwBitMask, u32 dwData); 121 109 122 - extern u32 rtl8192_QueryBBReg(struct net_device *dev, u32 dwRegAddr, 110 + u32 rtl8192_QueryBBReg(struct net_device *dev, u32 dwRegAddr, 123 111 u32 dwBitMask); 124 112 125 - extern void rtl8192_phy_SetRFReg(struct net_device *dev, 113 + void rtl8192_phy_SetRFReg(struct net_device *dev, 126 114 RF90_RADIO_PATH_E eRFPath, u32 RegAddr, 127 115 u32 BitMask, u32 Data); 128 116 129 - extern u32 rtl8192_phy_QueryRFReg(struct net_device *dev, 117 + u32 rtl8192_phy_QueryRFReg(struct net_device *dev, 130 118 RF90_RADIO_PATH_E eRFPath, u32 RegAddr, u32 BitMask); 131 119 132 - extern void rtl8192_phy_configmac(struct net_device *dev); 120 + void rtl8192_phy_configmac(struct net_device *dev); 133 121 134 - extern void rtl8192_phyConfigBB(struct net_device *dev, u8 ConfigType); 122 + void rtl8192_phyConfigBB(struct net_device *dev, u8 ConfigType); 135 123 136 - extern RT_STATUS rtl8192_phy_checkBBAndRF(struct net_device *dev, 124 + RT_STATUS rtl8192_phy_checkBBAndRF(struct net_device *dev, 137 125 HW90_BLOCK_E CheckBlock, RF90_RADIO_PATH_E eRFPath); 138 126 139 - extern RT_STATUS rtl8192_BBConfig(struct net_device *dev); 127 + RT_STATUS rtl8192_BBConfig(struct net_device *dev); 140 128 141 - extern void rtl8192_phy_getTxPower(struct net_device *dev); 129 + void rtl8192_phy_getTxPower(struct net_device *dev); 142 130 143 - extern void rtl8192_phy_setTxPower(struct net_device *dev, u8 channel); 131 + void rtl8192_phy_setTxPower(struct net_device *dev, u8 channel); 144 132 145 - extern RT_STATUS rtl8192_phy_RFConfig(struct net_device* dev); 133 + RT_STATUS rtl8192_phy_RFConfig(struct net_device* dev); 146 134 147 - extern void rtl8192_phy_updateInitGain(struct net_device* dev); 135 + void rtl8192_phy_updateInitGain(struct net_device* dev); 148 136 149 - extern u8 rtl8192_phy_ConfigRFWithHeaderFile(struct net_device *dev, 137 + u8 rtl8192_phy_ConfigRFWithHeaderFile(struct net_device *dev, 150 138 RF90_RADIO_PATH_E eRFPath); 151 139 152 - extern u8 rtl8192_phy_SwChnl(struct net_device *dev, u8 channel); 140 + u8 rtl8192_phy_SwChnl(struct net_device *dev, u8 channel); 153 141 154 - extern void rtl8192_SetBWMode(struct net_device *dev, 142 + void rtl8192_SetBWMode(struct net_device *dev, 155 143 HT_CHANNEL_WIDTH Bandwidth, HT_EXTCHNL_OFFSET Offset); 156 144 157 - extern void rtl8192_SwChnl_WorkItem(struct net_device *dev); 145 + void rtl8192_SwChnl_WorkItem(struct net_device *dev); 158 146 159 - extern void rtl8192_SetBWModeWorkItem(struct net_device *dev); 147 + void rtl8192_SetBWModeWorkItem(struct net_device *dev); 160 148 161 - extern void InitialGain819xPci(struct net_device *dev, u8 Operation); 149 + void InitialGain819xPci(struct net_device *dev, u8 Operation); 162 150 163 151 #endif /* _R819XU_PHY_H */