|
@@ -93,8 +93,6 @@ static int hermes_set_tkip_keys(ltv_t *ltv, u16 key_idx, u8 *addr,
|
|
|
hcf_8 tsc[IW_ENCODE_SEQ_MAX_SIZE] =
|
|
|
{ 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00 };
|
|
|
|
|
|
- DBG_ENTER(DbgInfo);
|
|
|
-
|
|
|
/*
|
|
|
* Check the key index here; if 0, load as Pairwise Key, otherwise,
|
|
|
* load as a group key. Note that for the Hermes, the RIDs for
|
|
@@ -327,9 +325,6 @@ static int wireless_commit(struct net_device *dev,
|
|
|
struct wl_private *lp = wl_priv(dev);
|
|
|
unsigned long flags;
|
|
|
int ret = 0;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
- DBG_ENTER(DbgInfo);
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -375,8 +370,6 @@ out:
|
|
|
******************************************************************************/
|
|
|
static int wireless_get_protocol(struct net_device *dev, struct iw_request_info *info, char *name, char *extra)
|
|
|
{
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
-
|
|
|
/* Originally, the driver was placing the string "Wireless" here. However,
|
|
|
the wireless extensions (/linux/wireless.h) indicate this string should
|
|
|
describe the wireless protocol. */
|
|
@@ -416,9 +409,6 @@ static int wireless_set_frequency(struct net_device *dev, struct iw_request_info
|
|
|
unsigned long flags;
|
|
|
int channel = 0;
|
|
|
int ret = 0;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -501,10 +491,6 @@ static int wireless_get_frequency(struct net_device *dev, struct iw_request_info
|
|
|
struct wl_private *lp = wl_priv(dev);
|
|
|
unsigned long flags;
|
|
|
int ret = -1;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -571,10 +557,6 @@ static int wireless_get_range(struct net_device *dev, struct iw_request_info *in
|
|
|
int count;
|
|
|
__u16 *pTxRate;
|
|
|
int retries = 0;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
/* Set range information */
|
|
|
data->length = sizeof(struct iw_range);
|
|
@@ -775,10 +757,6 @@ static int wireless_get_bssid(struct net_device *dev, struct iw_request_info *in
|
|
|
#if 1 //;? (HCF_TYPE) & HCF_TYPE_STA
|
|
|
int status = -1;
|
|
|
#endif /* (HCF_TYPE) & HCF_TYPE_STA */
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -867,9 +845,6 @@ static int wireless_get_ap_list (struct net_device *dev, struct iw_request_info
|
|
|
#else
|
|
|
ProbeResult *p = &lp->probe_results;
|
|
|
#endif // WARP
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -1002,10 +977,6 @@ static int wireless_set_sensitivity(struct net_device *dev, struct iw_request_in
|
|
|
unsigned long flags;
|
|
|
int ret = 0;
|
|
|
int dens = sens->value;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -1060,11 +1031,6 @@ static int wireless_get_sensitivity(struct net_device *dev, struct iw_request_in
|
|
|
{
|
|
|
struct wl_private *lp = wl_priv(dev);
|
|
|
int ret = 0;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -1109,8 +1075,6 @@ static int wireless_set_essid(struct net_device *dev, struct iw_request_info *in
|
|
|
unsigned long flags;
|
|
|
int ret = 0;
|
|
|
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
-
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
|
goto out;
|
|
@@ -1190,10 +1154,6 @@ static int wireless_get_essid(struct net_device *dev, struct iw_request_info *in
|
|
|
int ret = 0;
|
|
|
int status = -1;
|
|
|
wvName_t *pName;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -1323,8 +1283,6 @@ static int wireless_set_encode(struct net_device *dev, struct iw_request_info *i
|
|
|
int ret = 0;
|
|
|
bool enable = true;
|
|
|
|
|
|
- DBG_ENTER(DbgInfo);
|
|
|
-
|
|
|
if (lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
|
goto out;
|
|
@@ -1379,10 +1337,7 @@ static int wireless_get_encode(struct net_device *dev, struct iw_request_info *i
|
|
|
unsigned long flags;
|
|
|
int ret = 0;
|
|
|
int index;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
DBG_NOTICE(DbgInfo, "GIWENCODE: encrypt: %d, ID: %d\n", lp->EnableEncryption, lp->TransmitKeyID);
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
@@ -1469,10 +1424,6 @@ static int wireless_set_nickname(struct net_device *dev, struct iw_request_info
|
|
|
struct wl_private *lp = wl_priv(dev);
|
|
|
unsigned long flags;
|
|
|
int ret = 0;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -1543,10 +1494,6 @@ static int wireless_get_nickname(struct net_device *dev, struct iw_request_info
|
|
|
int ret = 0;
|
|
|
int status = -1;
|
|
|
wvName_t *pName;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -1619,9 +1566,6 @@ static int wireless_set_porttype(struct net_device *dev, struct iw_request_info
|
|
|
int ret = 0;
|
|
|
hcf_16 portType;
|
|
|
hcf_16 createIBSS;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -1733,10 +1677,6 @@ static int wireless_get_porttype(struct net_device *dev, struct iw_request_info
|
|
|
int ret = 0;
|
|
|
int status = -1;
|
|
|
hcf_16 *pPortType;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -1839,10 +1779,6 @@ static int wireless_set_power(struct net_device *dev, struct iw_request_info *in
|
|
|
struct wl_private *lp = wl_priv(dev);
|
|
|
unsigned long flags;
|
|
|
int ret = 0;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -1912,8 +1848,6 @@ static int wireless_get_power(struct net_device *dev, struct iw_request_info *in
|
|
|
struct wl_private *lp = wl_priv(dev);
|
|
|
unsigned long flags;
|
|
|
int ret = 0;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -1972,8 +1906,6 @@ static int wireless_get_tx_power(struct net_device *dev, struct iw_request_info
|
|
|
struct wl_private *lp = wl_priv(dev);
|
|
|
unsigned long flags;
|
|
|
int ret = 0;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -2032,10 +1964,6 @@ static int wireless_set_rts_threshold (struct net_device *dev, struct iw_request
|
|
|
struct wl_private *lp = wl_priv(dev);
|
|
|
unsigned long flags;
|
|
|
int rthr = rts->value;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -2101,9 +2029,6 @@ static int wireless_get_rts_threshold (struct net_device *dev, struct iw_request
|
|
|
int ret = 0;
|
|
|
struct wl_private *lp = wl_priv(dev);
|
|
|
unsigned long flags;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -2162,10 +2087,6 @@ static int wireless_set_rate(struct net_device *dev, struct iw_request_info *inf
|
|
|
int status = -1;
|
|
|
int index = 0;
|
|
|
#endif // WARP
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -2387,10 +2308,6 @@ static int wireless_get_rate(struct net_device *dev, struct iw_request_info *inf
|
|
|
int ret = 0;
|
|
|
int status = -1;
|
|
|
hcf_16 txRate;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -2498,10 +2415,6 @@ out:
|
|
|
int wireless_get_private_interface( struct iwreq *wrq, struct wl_private *lp )
|
|
|
{
|
|
|
int ret = 0;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -2567,12 +2480,9 @@ static int wireless_set_scan(struct net_device *dev, struct iw_request_info *inf
|
|
|
int ret = 0;
|
|
|
int status = -1;
|
|
|
int retries = 0;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
|
|
|
//;? Note: shows results as trace, returns always 0 unless BUSY
|
|
|
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
-
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
|
goto out;
|
|
@@ -2708,10 +2618,6 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf
|
|
|
hcf_8 msg[512];
|
|
|
hcf_8 *wpa_ie;
|
|
|
hcf_16 wpa_ie_len;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
-
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
|
|
|
if(lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
@@ -2896,8 +2802,6 @@ static int wireless_set_auth(struct net_device *dev,
|
|
|
int iwa_idx = data->flags & IW_AUTH_INDEX;
|
|
|
int iwa_val = data->value;
|
|
|
|
|
|
- DBG_ENTER( DbgInfo );
|
|
|
-
|
|
|
if (lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
|
goto out;
|
|
@@ -3059,8 +2963,6 @@ static int wireless_set_encodeext(struct net_device *dev,
|
|
|
bool enable = true;
|
|
|
bool set_tx = false;
|
|
|
|
|
|
- DBG_ENTER(DbgInfo);
|
|
|
-
|
|
|
if (lp->portState == WVLAN_PORT_STATE_DISABLED) {
|
|
|
ret = -EBUSY;
|
|
|
goto out;
|
|
@@ -3174,8 +3076,6 @@ static int wireless_set_genie(struct net_device *dev,
|
|
|
{
|
|
|
int ret = 0;
|
|
|
|
|
|
- DBG_ENTER(DbgInfo);
|
|
|
-
|
|
|
/* We can't write this to the card, but apparently this
|
|
|
* operation needs to succeed */
|
|
|
ret = 0;
|
|
@@ -3209,10 +3109,7 @@ struct iw_statistics * wl_wireless_stats( struct net_device *dev )
|
|
|
{
|
|
|
struct iw_statistics *pStats;
|
|
|
struct wl_private *lp = wl_priv(dev);
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
|
|
|
- DBG_ENTER(DbgInfo);
|
|
|
DBG_PARAM(DbgInfo, "dev", "%s (0x%p)", dev->name, dev);
|
|
|
|
|
|
pStats = NULL;
|
|
@@ -3307,9 +3204,6 @@ struct iw_statistics * wl_get_wireless_stats( struct net_device *dev )
|
|
|
unsigned long flags;
|
|
|
struct wl_private *lp = wl_priv(dev);
|
|
|
struct iw_statistics *pStats = NULL;
|
|
|
- /*------------------------------------------------------------------------*/
|
|
|
-
|
|
|
- DBG_ENTER(DbgInfo);
|
|
|
|
|
|
wl_lock( lp, &flags );
|
|
|
|