Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3.4.11e/openwrt 18.06 rtkmipsel 3.18 #32

Open
wants to merge 2 commits into
base: v3.4.11e/openwrt-18.06-rtkmipsel-3.18
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4,974 changes: 2,487 additions & 2,487 deletions package/kernel/rtl8192cd/8192c_reg.h

Large diffs are not rendered by default.

2,398 changes: 1,199 additions & 1,199 deletions package/kernel/rtl8192cd/8192cd_11v.c

Large diffs are not rendered by default.

148 changes: 74 additions & 74 deletions package/kernel/rtl8192cd/8192cd_11v.h
Original file line number Diff line number Diff line change
@@ -1,74 +1,74 @@
#ifndef _8192CD_11V_H_
#define _8192CD_11V_H_
#ifdef DOT11V_DEBUG
#define DOT11VDEBUG(fmt, args...) panic_printk("[%s %d]"fmt,__FUNCTION__,__LINE__,## args)
#else
#define DOT11VDEBUG(fmt, args...)
#endif
//#define DOT11V_TRACE
#ifdef DOT11V_TRACE
#define DOT11VTRACE(fmt, args...) panic_printk("[%s %d]"fmt,__FUNCTION__,__LINE__,## args)
#else
#define DOT11VTRACE(fmt, args...)
#endif
#ifndef _8192CD_11V_C_
#define EXTERN extern
#else
#define EXTERN
#endif
#define _WNM_TSF_INFO_ 1
#define _WNM_CONDENSED_COUNTRY_STRING_ 2
#define _WNM_BSS_TRANS_CANDIDATE_PREFRENCE_ 3
#define _WNM_BSS_TERMINATION_DURATION_ 4
#define _WNM_BEARING_ 5
#define _WNM_MEASUREMENT_PILOT_ 66
#define _WNM_RRM_ENABLED_CAPABILITIES_ 70
#define _WNM_MULTIPLE_BSSID_ 71
#define TRANS_LIST_PROC_LEN 50
#define MAX_PREFERRED_VAL 255
#define NEIGHBOR_REPORT_SIZE 13 // size of neighbor report structure
EXTERN unsigned char getPreferredVal(struct rtl8192cd_priv *priv, unsigned char channel_utilization, unsigned char rcpi, bool excluded);
EXTERN void OnBSSTransQuery(struct rtl8192cd_priv *priv, struct stat_info *pstat, unsigned char *pframe, int frame_len);
EXTERN void OnBSSTransRsp(struct rtl8192cd_priv *priv, struct stat_info *pstat, unsigned char *pframe, int frame_len);
EXTERN int issue_BSS_Trans_Req(struct rtl8192cd_priv *priv, unsigned char *da, unsigned char dialog_token);
EXTERN unsigned char * construct_neighbor_report_ie(unsigned char *pbuf, unsigned int *frlen, struct dot11k_neighbor_report * report);
EXTERN void set_staBssTransCap(struct stat_info *pstat, unsigned char *pframe, int frameLen, unsigned short ie_offset);
EXTERN void reset_staBssTransStatus(struct stat_info *pstat);
EXTERN void WNM_ActionHandler(struct rtl8192cd_priv *priv, struct stat_info *pstat, unsigned char *pframe, int frame_len);
EXTERN void set_BssTransPara(struct rtl8192cd_priv *priv, unsigned char *tmpbuf);
EXTERN void send_bss_trans_event(struct rtl8192cd_priv *priv, struct stat_info *pstat, unsigned char i);
EXTERN void process_BssTransReq(struct rtl8192cd_priv *priv);
EXTERN void BssTrans_DiassocTimer(struct rtl8192cd_priv *priv);
EXTERN void BssTrans_ExpiredTimer(struct rtl8192cd_priv *priv);
EXTERN void BssTrans_ValidatePrefListTimer(struct rtl8192cd_priv *priv);
EXTERN void BssTrans_TerminationTimer(struct rtl8192cd_priv *priv);
#ifdef CONFIG_RTL_PROC_NEW
EXTERN int rtl8192cd_proc_transition_list_read(struct seq_file *s, void *data);
#else
EXTERN int rtl8192cd_proc_transition_list_read(char *buf, char **start, off_t offset, int length, int *eof, void *data);
#endif
#ifdef __ECOS
EXTERN int rtl8192cd_proc_transition_list_write(char *tmp, void *data)
#else
EXTERN int rtl8192cd_proc_transition_list_write(struct file *file, const char *buffer, unsigned long count, void *data);
#endif
#ifdef CONFIG_IEEE80211V_CLI
EXTERN void OnBSSTransReq(struct rtl8192cd_priv *priv, struct stat_info *pstat, unsigned char *pframe, int frame_len);
#endif
#endif

#ifndef _8192CD_11V_H_
#define _8192CD_11V_H_



#ifdef DOT11V_DEBUG
#define DOT11VDEBUG(fmt, args...) panic_printk("[%s %d]"fmt,__FUNCTION__,__LINE__,## args)
#else
#define DOT11VDEBUG(fmt, args...)
#endif

//#define DOT11V_TRACE
#ifdef DOT11V_TRACE
#define DOT11VTRACE(fmt, args...) panic_printk("[%s %d]"fmt,__FUNCTION__,__LINE__,## args)
#else
#define DOT11VTRACE(fmt, args...)
#endif

#ifndef _8192CD_11V_C_
#define EXTERN extern
#else
#define EXTERN
#endif

#define _WNM_TSF_INFO_ 1
#define _WNM_CONDENSED_COUNTRY_STRING_ 2
#define _WNM_BSS_TRANS_CANDIDATE_PREFRENCE_ 3
#define _WNM_BSS_TERMINATION_DURATION_ 4
#define _WNM_BEARING_ 5
#define _WNM_MEASUREMENT_PILOT_ 66
#define _WNM_RRM_ENABLED_CAPABILITIES_ 70
#define _WNM_MULTIPLE_BSSID_ 71

#define TRANS_LIST_PROC_LEN 50
#define MAX_PREFERRED_VAL 255
#define NEIGHBOR_REPORT_SIZE 13 // size of neighbor report structure


EXTERN unsigned char getPreferredVal(struct rtl8192cd_priv *priv, unsigned char channel_utilization, unsigned char rcpi, bool excluded);
EXTERN void OnBSSTransQuery(struct rtl8192cd_priv *priv, struct stat_info *pstat, unsigned char *pframe, int frame_len);
EXTERN void OnBSSTransRsp(struct rtl8192cd_priv *priv, struct stat_info *pstat, unsigned char *pframe, int frame_len);
EXTERN int issue_BSS_Trans_Req(struct rtl8192cd_priv *priv, unsigned char *da, unsigned char dialog_token);
EXTERN unsigned char * construct_neighbor_report_ie(unsigned char *pbuf, unsigned int *frlen, struct dot11k_neighbor_report * report);
EXTERN void set_staBssTransCap(struct stat_info *pstat, unsigned char *pframe, int frameLen, unsigned short ie_offset);
EXTERN void reset_staBssTransStatus(struct stat_info *pstat);
EXTERN void WNM_ActionHandler(struct rtl8192cd_priv *priv, struct stat_info *pstat, unsigned char *pframe, int frame_len);
EXTERN void set_BssTransPara(struct rtl8192cd_priv *priv, unsigned char *tmpbuf);
EXTERN void send_bss_trans_event(struct rtl8192cd_priv *priv, struct stat_info *pstat, unsigned char i);
EXTERN void process_BssTransReq(struct rtl8192cd_priv *priv);
EXTERN void BssTrans_DiassocTimer(struct rtl8192cd_priv *priv);
EXTERN void BssTrans_ExpiredTimer(struct rtl8192cd_priv *priv);
EXTERN void BssTrans_ValidatePrefListTimer(struct rtl8192cd_priv *priv);
EXTERN void BssTrans_TerminationTimer(struct rtl8192cd_priv *priv);


#ifdef CONFIG_RTL_PROC_NEW
EXTERN int rtl8192cd_proc_transition_list_read(struct seq_file *s, void *data);
#else
EXTERN int rtl8192cd_proc_transition_list_read(char *buf, char **start, off_t offset, int length, int *eof, void *data);
#endif

#ifdef __ECOS
EXTERN int rtl8192cd_proc_transition_list_write(char *tmp, void *data)
#else
EXTERN int rtl8192cd_proc_transition_list_write(struct file *file, const char *buffer, unsigned long count, void *data);
#endif

#ifdef CONFIG_IEEE80211V_CLI
EXTERN void OnBSSTransReq(struct rtl8192cd_priv *priv, struct stat_info *pstat, unsigned char *pframe, int frame_len);
#endif


#endif
Loading