|
@@ -415,8 +415,7 @@ static int wpa_set_encryption(struct net_device *dev, struct ieee_param *param,
|
|
|
} else
|
|
|
return -EINVAL;
|
|
|
if (strcmp(param->u.crypt.alg, "WEP") == 0) {
|
|
|
- printk(KERN_INFO "r8712u: wpa_set_encryption, crypt.alg ="
|
|
|
- " WEP\n");
|
|
|
+ netdev_info(dev, "r8712u: %s: crypt.alg = WEP\n", __func__);
|
|
|
padapter->securitypriv.ndisencryptstatus =
|
|
|
Ndis802_11Encryption1Enabled;
|
|
|
padapter->securitypriv.PrivacyAlgrthm = _WEP40_;
|
|
@@ -608,8 +607,7 @@ static int r871x_set_wpa_ie(struct _adapter *padapter, char *pie,
|
|
|
|
|
|
if ((eid == _VENDOR_SPECIFIC_IE_) &&
|
|
|
(!memcmp(&buf[cnt+2], wps_oui, 4))) {
|
|
|
- printk(KERN_INFO "r8712u: "
|
|
|
- "SET WPS_IE\n");
|
|
|
+ netdev_info(padapter->pnetdev, "r8712u: SET WPS_IE\n");
|
|
|
padapter->securitypriv.wps_ie_len =
|
|
|
((buf[cnt+1] + 2) <
|
|
|
(MAX_WPA_IE_LEN << 2)) ?
|
|
@@ -620,8 +618,7 @@ static int r871x_set_wpa_ie(struct _adapter *padapter, char *pie,
|
|
|
padapter->securitypriv.wps_ie_len);
|
|
|
padapter->securitypriv.wps_phase =
|
|
|
true;
|
|
|
- printk(KERN_INFO "r8712u: SET WPS_IE,"
|
|
|
- " wps_phase==true\n");
|
|
|
+ netdev_info(padapter->pnetdev, "r8712u: SET WPS_IE, wps_phase==true\n");
|
|
|
cnt += buf[cnt+1]+2;
|
|
|
break;
|
|
|
} else
|
|
@@ -829,8 +826,8 @@ static int r871x_wx_set_pmkid(struct net_device *dev,
|
|
|
strIssueBssid, ETH_ALEN)) {
|
|
|
/* BSSID is matched, the same AP => rewrite
|
|
|
* with new PMKID. */
|
|
|
- printk(KERN_INFO "r8712u: r871x_wx_set_pmkid:"
|
|
|
- " BSSID exists in the PMKList.\n");
|
|
|
+ netdev_info(dev, "r8712u: %s: BSSID exists in the PMKList.\n",
|
|
|
+ __func__);
|
|
|
memcpy(psecuritypriv->PMKIDList[j].PMKID,
|
|
|
pPMK->pmkid, IW_PMKID_LEN);
|
|
|
psecuritypriv->PMKIDList[j].bUsed = true;
|
|
@@ -841,9 +838,8 @@ static int r871x_wx_set_pmkid(struct net_device *dev,
|
|
|
}
|
|
|
if (!blInserted) {
|
|
|
/* Find a new entry */
|
|
|
- printk(KERN_INFO "r8712u: r871x_wx_set_pmkid: Use the"
|
|
|
- " new entry index = %d for this PMKID.\n",
|
|
|
- psecuritypriv->PMKIDIndex);
|
|
|
+ netdev_info(dev, "r8712u: %s: Use the new entry index = %d for this PMKID.\n",
|
|
|
+ __func__, psecuritypriv->PMKIDIndex);
|
|
|
memcpy(psecuritypriv->PMKIDList[psecuritypriv->
|
|
|
PMKIDIndex].Bssid, strIssueBssid, ETH_ALEN);
|
|
|
memcpy(psecuritypriv->PMKIDList[psecuritypriv->
|
|
@@ -876,8 +872,7 @@ static int r871x_wx_set_pmkid(struct net_device *dev,
|
|
|
intReturn = true;
|
|
|
break;
|
|
|
default:
|
|
|
- printk(KERN_INFO "r8712u: r871x_wx_set_pmkid: "
|
|
|
- "unknown Command\n");
|
|
|
+ netdev_info(dev, "r8712u: %s: unknown Command\n", __func__);
|
|
|
intReturn = false;
|
|
|
break;
|
|
|
}
|
|
@@ -1045,8 +1040,8 @@ static int r871x_wx_set_priv(struct net_device *dev,
|
|
|
);
|
|
|
sprintf(ext, "OK");
|
|
|
} else {
|
|
|
- printk(KERN_INFO "r8712u: r871x_wx_set_priv: unknown Command"
|
|
|
- " %s.\n", ext);
|
|
|
+ netdev_info(dev, "r8712u: %s: unknown Command %s.\n",
|
|
|
+ __func__, ext);
|
|
|
goto FREE_EXT;
|
|
|
}
|
|
|
if (copy_to_user(dwrq->pointer, ext,
|
|
@@ -1183,8 +1178,8 @@ static int r8711_wx_set_scan(struct net_device *dev,
|
|
|
u8 status = true;
|
|
|
|
|
|
if (padapter->bDriverStopped == true) {
|
|
|
- printk(KERN_WARNING "r8712u: in r8711_wx_set_scan: "
|
|
|
- "bDriverStopped=%d\n", padapter->bDriverStopped);
|
|
|
+ netdev_info(dev, "In %s: bDriverStopped=%d\n",
|
|
|
+ __func__, padapter->bDriverStopped);
|
|
|
return -1;
|
|
|
}
|
|
|
if (padapter->bup == false)
|
|
@@ -1556,8 +1551,7 @@ static int r8711_wx_set_enc(struct net_device *dev,
|
|
|
key = erq->flags & IW_ENCODE_INDEX;
|
|
|
memset(&wep, 0, sizeof(struct NDIS_802_11_WEP));
|
|
|
if (erq->flags & IW_ENCODE_DISABLED) {
|
|
|
- printk(KERN_INFO "r8712u: r8711_wx_set_enc: "
|
|
|
- "EncryptionDisabled\n");
|
|
|
+ netdev_info(dev, "r8712u: %s: EncryptionDisabled\n", __func__);
|
|
|
padapter->securitypriv.ndisencryptstatus =
|
|
|
Ndis802_11EncryptionDisabled;
|
|
|
padapter->securitypriv.PrivacyAlgrthm = _NO_PRIVACY_;
|
|
@@ -1578,8 +1572,7 @@ static int r8711_wx_set_enc(struct net_device *dev,
|
|
|
}
|
|
|
/* set authentication mode */
|
|
|
if (erq->flags & IW_ENCODE_OPEN) {
|
|
|
- printk(KERN_INFO "r8712u: r8711_wx_set_enc: "
|
|
|
- "IW_ENCODE_OPEN\n");
|
|
|
+ netdev_info(dev, "r8712u: %s: IW_ENCODE_OPEN\n", __func__);
|
|
|
padapter->securitypriv.ndisencryptstatus =
|
|
|
Ndis802_11Encryption1Enabled;
|
|
|
padapter->securitypriv.AuthAlgrthm = 0; /* open system */
|
|
@@ -1588,8 +1581,7 @@ static int r8711_wx_set_enc(struct net_device *dev,
|
|
|
authmode = Ndis802_11AuthModeOpen;
|
|
|
padapter->securitypriv.ndisauthtype = authmode;
|
|
|
} else if (erq->flags & IW_ENCODE_RESTRICTED) {
|
|
|
- printk(KERN_INFO "r8712u: r8711_wx_set_enc: "
|
|
|
- "IW_ENCODE_RESTRICTED\n");
|
|
|
+ netdev_info(dev, "r8712u: %s: IW_ENCODE_RESTRICTED\n", __func__);
|
|
|
padapter->securitypriv.ndisencryptstatus =
|
|
|
Ndis802_11Encryption1Enabled;
|
|
|
padapter->securitypriv.AuthAlgrthm = 1; /* shared system */
|
|
@@ -1977,9 +1969,9 @@ static int r871x_mp_ioctl_hdl(struct net_device *dev,
|
|
|
status = phandler->handler(&oid_par);
|
|
|
/* todo:check status, BytesNeeded, etc. */
|
|
|
} else {
|
|
|
- printk(KERN_INFO "r8712u: r871x_mp_ioctl_hdl(): err!,"
|
|
|
- " subcode=%d, oid=%d, handler=%p\n",
|
|
|
- poidparam->subcode, phandler->oid, phandler->handler);
|
|
|
+ netdev_info(dev, "r8712u: %s: err!, subcode=%d, oid=%d, handler=%p\n",
|
|
|
+ __func__, poidparam->subcode, phandler->oid,
|
|
|
+ phandler->handler);
|
|
|
ret = -EFAULT;
|
|
|
goto _r871x_mp_ioctl_hdl_exit;
|
|
|
}
|
|
@@ -2034,13 +2026,13 @@ static int r871x_get_ap_info(struct net_device *dev,
|
|
|
break;
|
|
|
pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
|
|
|
if (hwaddr_aton_i(data, bssid)) {
|
|
|
- printk(KERN_INFO "r8712u: Invalid BSSID '%s'.\n",
|
|
|
- (u8 *)data);
|
|
|
+ netdev_info(dev, "r8712u: Invalid BSSID '%s'.\n",
|
|
|
+ (u8 *)data);
|
|
|
spin_unlock_irqrestore(&(pmlmepriv->scanned_queue.lock),
|
|
|
- irqL);
|
|
|
+ irqL);
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
- printk(KERN_INFO "r8712u: BSSID:%pM\n", bssid);
|
|
|
+ netdev_info(dev, "r8712u: BSSID:%pM\n", bssid);
|
|
|
if (!memcmp(bssid, pnetwork->network.MacAddress, ETH_ALEN)) {
|
|
|
/* BSSID match, then check if supporting wpa/wpa2 */
|
|
|
pbuf = r8712_get_wpa_ie(&pnetwork->network.IEs[12],
|