Commit 9b9556ec authored by Moritz Muehlenhoff's avatar Moritz Muehlenhoff Committed by Greg Kroah-Hartman

Staging: wlan-ng: Replace WLAN_LOG_WARNING() with printk()

Signed-off-by: default avatarMoritz Muehlenhoff <jmm@debian.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent edbd606c
...@@ -427,7 +427,7 @@ submit_rx_urb(hfa384x_t *hw, gfp_t memflags) ...@@ -427,7 +427,7 @@ submit_rx_urb(hfa384x_t *hw, gfp_t memflags)
/* Check whether we need to reset the RX pipe */ /* Check whether we need to reset the RX pipe */
if (result == -EPIPE) { if (result == -EPIPE) {
WLAN_LOG_WARNING("%s rx pipe stalled: requesting reset\n", printk(KERN_WARNING "%s rx pipe stalled: requesting reset\n",
hw->wlandev->netdev->name); hw->wlandev->netdev->name);
if ( !test_and_set_bit(WORK_RX_HALT, &hw->usb_flags) ) if ( !test_and_set_bit(WORK_RX_HALT, &hw->usb_flags) )
schedule_work(&hw->usb_work); schedule_work(&hw->usb_work);
...@@ -476,7 +476,7 @@ submit_tx_urb(hfa384x_t *hw, struct urb *tx_urb, gfp_t memflags) ...@@ -476,7 +476,7 @@ submit_tx_urb(hfa384x_t *hw, struct urb *tx_urb, gfp_t memflags)
/* Test whether we need to reset the TX pipe */ /* Test whether we need to reset the TX pipe */
if (result == -EPIPE) { if (result == -EPIPE) {
WLAN_LOG_WARNING("%s tx pipe stalled: requesting reset\n", printk(KERN_WARNING "%s tx pipe stalled: requesting reset\n",
netdev->name); netdev->name);
set_bit(WORK_TX_HALT, &hw->usb_flags); set_bit(WORK_TX_HALT, &hw->usb_flags);
schedule_work(&hw->usb_work); schedule_work(&hw->usb_work);
...@@ -809,7 +809,7 @@ static int usbctlx_rrid_completor_fn(usbctlx_completor_t *head) ...@@ -809,7 +809,7 @@ static int usbctlx_rrid_completor_fn(usbctlx_completor_t *head)
/* Validate the length, note body len calculation in bytes */ /* Validate the length, note body len calculation in bytes */
if ( rridresult.riddata_len != complete->riddatalen ) { if ( rridresult.riddata_len != complete->riddatalen ) {
WLAN_LOG_WARNING( printk(KERN_WARNING
"RID len mismatch, rid=0x%04x hlen=%d fwlen=%d\n", "RID len mismatch, rid=0x%04x hlen=%d fwlen=%d\n",
rridresult.rid, rridresult.rid,
complete->riddatalen, complete->riddatalen,
...@@ -1499,7 +1499,7 @@ static int hfa384x_usbctlx_complete_sync(hfa384x_t *hw, ...@@ -1499,7 +1499,7 @@ static int hfa384x_usbctlx_complete_sync(hfa384x_t *hw,
if (ctlx->state == CTLX_COMPLETE) { if (ctlx->state == CTLX_COMPLETE) {
result = completor->complete(completor); result = completor->complete(completor);
} else { } else {
WLAN_LOG_WARNING("CTLX[%d] error: state(%s)\n", printk(KERN_WARNING "CTLX[%d] error: state(%s)\n",
hfa384x2host_16(ctlx->outbuf.type), hfa384x2host_16(ctlx->outbuf.type),
ctlxstr(ctlx->state)); ctlxstr(ctlx->state));
result = -EIO; result = -EIO;
...@@ -2255,7 +2255,7 @@ hfa384x_drvr_flashdl_write( ...@@ -2255,7 +2255,7 @@ hfa384x_drvr_flashdl_write(
hw->bufinfo.page, hw->bufinfo.offset, dlbufaddr); hw->bufinfo.page, hw->bufinfo.offset, dlbufaddr);
#if 0 #if 0
WLAN_LOG_WARNING("dlbuf@0x%06lx len=%d to=%d\n", dlbufaddr, hw->bufinfo.len, hw->dltimeout); printk(KERN_WARNING "dlbuf@0x%06lx len=%d to=%d\n", dlbufaddr, hw->bufinfo.len, hw->dltimeout);
#endif #endif
/* Calculations to determine how many fills of the dlbuffer to do /* Calculations to determine how many fills of the dlbuffer to do
* and how many USB wmemreq's to do for each fill. At this point * and how many USB wmemreq's to do for each fill. At this point
...@@ -2764,7 +2764,7 @@ int hfa384x_drvr_readpda(hfa384x_t *hw, void *buf, unsigned int len) ...@@ -2764,7 +2764,7 @@ int hfa384x_drvr_readpda(hfa384x_t *hw, void *buf, unsigned int len)
len); /* units of bytes */ len); /* units of bytes */
if (result) { if (result) {
WLAN_LOG_WARNING( printk(KERN_WARNING
"Read from index %zd failed, continuing\n", "Read from index %zd failed, continuing\n",
i ); i );
continue; continue;
...@@ -2941,10 +2941,10 @@ int hfa384x_drvr_start(hfa384x_t *hw) ...@@ -2941,10 +2941,10 @@ int hfa384x_drvr_start(hfa384x_t *hw)
WLAN_LOG_DEBUG(0, "but second attempt succeeded. All should be ok\n"); WLAN_LOG_DEBUG(0, "but second attempt succeeded. All should be ok\n");
} }
} else if (result2 != 0) { } else if (result2 != 0) {
WLAN_LOG_WARNING( printk(KERN_WARNING
"First cmd_initialize() succeeded, but second attempt failed (result=%d)\n", "First cmd_initialize() succeeded, but second attempt failed (result=%d)\n",
result2); result2);
WLAN_LOG_WARNING("Most likely the card will be functional\n"); printk(KERN_WARNING "Most likely the card will be functional\n");
goto done; goto done;
} }
...@@ -3036,7 +3036,7 @@ int hfa384x_drvr_txframe(hfa384x_t *hw, struct sk_buff *skb, p80211_hdr_t *p8021 ...@@ -3036,7 +3036,7 @@ int hfa384x_drvr_txframe(hfa384x_t *hw, struct sk_buff *skb, p80211_hdr_t *p8021
char *ptr; char *ptr;
if (hw->tx_urb.status == -EINPROGRESS) { if (hw->tx_urb.status == -EINPROGRESS) {
WLAN_LOG_WARNING("TX URB already in use\n"); printk(KERN_WARNING "TX URB already in use\n");
result = 3; result = 3;
goto exit; goto exit;
} }
...@@ -3423,7 +3423,7 @@ hfa384x_usbctlxq_run(hfa384x_t *hw) ...@@ -3423,7 +3423,7 @@ hfa384x_usbctlxq_run(hfa384x_t *hw)
* this CTLX back in the "pending" queue * this CTLX back in the "pending" queue
* and schedule a reset ... * and schedule a reset ...
*/ */
WLAN_LOG_WARNING("%s tx pipe stalled: requesting reset\n", printk(KERN_WARNING "%s tx pipe stalled: requesting reset\n",
hw->wlandev->netdev->name); hw->wlandev->netdev->name);
list_move(&head->list, &hw->ctlxq.pending); list_move(&head->list, &hw->ctlxq.pending);
set_bit(WORK_TX_HALT, &hw->usb_flags); set_bit(WORK_TX_HALT, &hw->usb_flags);
...@@ -3432,7 +3432,7 @@ hfa384x_usbctlxq_run(hfa384x_t *hw) ...@@ -3432,7 +3432,7 @@ hfa384x_usbctlxq_run(hfa384x_t *hw)
} }
if (result == -ESHUTDOWN) { if (result == -ESHUTDOWN) {
WLAN_LOG_WARNING("%s urb shutdown!\n", printk(KERN_WARNING "%s urb shutdown!\n",
hw->wlandev->netdev->name); hw->wlandev->netdev->name);
break; break;
} }
...@@ -3508,7 +3508,7 @@ static void hfa384x_usbin_callback(struct urb *urb) ...@@ -3508,7 +3508,7 @@ static void hfa384x_usbin_callback(struct urb *urb)
break; break;
case -EPIPE: case -EPIPE:
WLAN_LOG_WARNING("%s rx pipe stalled: requesting reset\n", printk(KERN_WARNING "%s rx pipe stalled: requesting reset\n",
wlandev->netdev->name); wlandev->netdev->name);
if ( !test_and_set_bit(WORK_RX_HALT, &hw->usb_flags) ) if ( !test_and_set_bit(WORK_RX_HALT, &hw->usb_flags) )
schedule_work(&hw->usb_work); schedule_work(&hw->usb_work);
...@@ -3698,7 +3698,7 @@ retry: ...@@ -3698,7 +3698,7 @@ retry:
* Check that our message is what we're expecting ... * Check that our message is what we're expecting ...
*/ */
if (ctlx->outbuf.type != intype) { if (ctlx->outbuf.type != intype) {
WLAN_LOG_WARNING("Expected IN[%d], received IN[%d] - ignored.\n", printk(KERN_WARNING "Expected IN[%d], received IN[%d] - ignored.\n",
hfa384x2host_16(ctlx->outbuf.type), hfa384x2host_16(ctlx->outbuf.type),
hfa384x2host_16(intype)); hfa384x2host_16(intype));
goto unlock; goto unlock;
...@@ -3877,7 +3877,7 @@ static void hfa384x_usbin_rx(wlandevice_t *wlandev, struct sk_buff *skb) ...@@ -3877,7 +3877,7 @@ static void hfa384x_usbin_rx(wlandevice_t *wlandev, struct sk_buff *skb)
break; break;
default: default:
WLAN_LOG_WARNING("Received frame on unsupported port=%d\n", printk(KERN_WARNING "Received frame on unsupported port=%d\n",
HFA384x_RXSTATUS_MACPORT_GET(usbin->rxfrm.desc.status) ); HFA384x_RXSTATUS_MACPORT_GET(usbin->rxfrm.desc.status) );
goto done; goto done;
break; break;
...@@ -4057,7 +4057,7 @@ static void hfa384x_usbout_callback(struct urb *urb) ...@@ -4057,7 +4057,7 @@ static void hfa384x_usbout_callback(struct urb *urb)
case -EPIPE: case -EPIPE:
{ {
hfa384x_t *hw = wlandev->priv; hfa384x_t *hw = wlandev->priv;
WLAN_LOG_WARNING("%s tx pipe stalled: requesting reset\n", printk(KERN_WARNING "%s tx pipe stalled: requesting reset\n",
wlandev->netdev->name); wlandev->netdev->name);
if ( !test_and_set_bit(WORK_TX_HALT, &hw->usb_flags) ) if ( !test_and_set_bit(WORK_TX_HALT, &hw->usb_flags) )
schedule_work(&hw->usb_work); schedule_work(&hw->usb_work);
...@@ -4193,7 +4193,7 @@ retry: ...@@ -4193,7 +4193,7 @@ retry:
/* If the pipe has stalled then we need to reset it */ /* If the pipe has stalled then we need to reset it */
if ( (urb->status == -EPIPE) && if ( (urb->status == -EPIPE) &&
!test_and_set_bit(WORK_TX_HALT, &hw->usb_flags) ) { !test_and_set_bit(WORK_TX_HALT, &hw->usb_flags) ) {
WLAN_LOG_WARNING("%s tx pipe stalled: requesting reset\n", printk(KERN_WARNING "%s tx pipe stalled: requesting reset\n",
hw->wlandev->netdev->name); hw->wlandev->netdev->name);
schedule_work(&hw->usb_work); schedule_work(&hw->usb_work);
} }
......
...@@ -235,7 +235,7 @@ int skb_ether_to_p80211( wlandevice_t *wlandev, u32 ethconv, struct sk_buff *skb ...@@ -235,7 +235,7 @@ int skb_ether_to_p80211( wlandevice_t *wlandev, u32 ethconv, struct sk_buff *skb
skb->len, skb->len,
(wlandev->hostwep & HOSTWEP_DEFAULTKEY_MASK), (wlandev->hostwep & HOSTWEP_DEFAULTKEY_MASK),
p80211_wep->iv, p80211_wep->icv))) { p80211_wep->iv, p80211_wep->icv))) {
WLAN_LOG_WARNING("Host en-WEP failed, dropping frame (%d).\n", foo); printk(KERN_WARNING "Host en-WEP failed, dropping frame (%d).\n", foo);
return 2; return 2;
} }
fc |= cpu_to_le16(WLAN_SET_FC_ISWEP(1)); fc |= cpu_to_le16(WLAN_SET_FC_ISWEP(1));
......
...@@ -1155,7 +1155,7 @@ static void p80211knetdev_tx_timeout( netdevice_t *netdev) ...@@ -1155,7 +1155,7 @@ static void p80211knetdev_tx_timeout( netdevice_t *netdev)
if (wlandev->tx_timeout) { if (wlandev->tx_timeout) {
wlandev->tx_timeout(wlandev); wlandev->tx_timeout(wlandev);
} else { } else {
WLAN_LOG_WARNING("Implement tx_timeout for %s\n", printk(KERN_WARNING "Implement tx_timeout for %s\n",
wlandev->nsdname); wlandev->nsdname);
netif_wake_queue(wlandev->netdev); netif_wake_queue(wlandev->netdev);
} }
......
...@@ -183,7 +183,7 @@ int prism2mgmt_scan(wlandevice_t *wlandev, void *msgp) ...@@ -183,7 +183,7 @@ int prism2mgmt_scan(wlandevice_t *wlandev, void *msgp)
} }
result = hfa384x_drvr_setconfig16(hw, HFA384x_RID_CNFPASSIVESCANCTRL, word); result = hfa384x_drvr_setconfig16(hw, HFA384x_RID_CNFPASSIVESCANCTRL, word);
if ( result ) { if ( result ) {
WLAN_LOG_WARNING("Passive scan not supported with " printk(KERN_WARNING "Passive scan not supported with "
"current firmware. (<1.5.1)\n"); "current firmware. (<1.5.1)\n");
} }
} }
......
...@@ -729,7 +729,7 @@ void *data) ...@@ -729,7 +729,7 @@ void *data)
if (!isget) if (!isget)
if ((*uint32) % 2) { if ((*uint32) % 2) {
WLAN_LOG_WARNING("Attempt to set odd number " printk(KERN_WARNING "Attempt to set odd number "
"FragmentationThreshold\n"); "FragmentationThreshold\n");
msg->resultcode.data = P80211ENUM_resultcode_not_supported; msg->resultcode.data = P80211ENUM_resultcode_not_supported;
return(0); return(0);
......
...@@ -446,7 +446,7 @@ static int prism2sta_mlmerequest(wlandevice_t *wlandev, p80211msg_t *msg) ...@@ -446,7 +446,7 @@ static int prism2sta_mlmerequest(wlandevice_t *wlandev, p80211msg_t *msg)
break; break;
} }
default: default:
WLAN_LOG_WARNING("Unknown mgmt request message 0x%08x", msg->msgcode); printk(KERN_WARNING "Unknown mgmt request message 0x%08x", msg->msgcode);
break; break;
} }
...@@ -511,7 +511,7 @@ u32 prism2sta_ifstate(wlandevice_t *wlandev, u32 ifstate) ...@@ -511,7 +511,7 @@ u32 prism2sta_ifstate(wlandevice_t *wlandev, u32 ifstate)
result = P80211ENUM_resultcode_success; result = P80211ENUM_resultcode_success;
break; break;
case WLAN_MSD_RUNNING: case WLAN_MSD_RUNNING:
WLAN_LOG_WARNING( printk(KERN_WARNING
"Cannot enter fwload state from enable state," "Cannot enter fwload state from enable state,"
"you must disable first.\n"); "you must disable first.\n");
result = P80211ENUM_resultcode_invalid_parameters; result = P80211ENUM_resultcode_invalid_parameters;
...@@ -1467,7 +1467,7 @@ void prism2sta_processing_defer(struct work_struct *data) ...@@ -1467,7 +1467,7 @@ void prism2sta_processing_defer(struct work_struct *data)
default: default:
/* This is bad, IO port problems? */ /* This is bad, IO port problems? */
WLAN_LOG_WARNING( printk(KERN_WARNING
"unknown linkstatus=0x%02x\n", hw->link_status); "unknown linkstatus=0x%02x\n", hw->link_status);
goto failed; goto failed;
break; break;
...@@ -1557,14 +1557,14 @@ static void prism2sta_inf_assocstatus(wlandevice_t *wlandev, ...@@ -1557,14 +1557,14 @@ static void prism2sta_inf_assocstatus(wlandevice_t *wlandev,
if (i >= hw->authlist.cnt) { if (i >= hw->authlist.cnt) {
if (rec.assocstatus != HFA384x_ASSOCSTATUS_AUTHFAIL) if (rec.assocstatus != HFA384x_ASSOCSTATUS_AUTHFAIL)
WLAN_LOG_WARNING("assocstatus info frame received for non-authenticated station.\n"); printk(KERN_WARNING "assocstatus info frame received for non-authenticated station.\n");
} else { } else {
hw->authlist.assoc[i] = hw->authlist.assoc[i] =
(rec.assocstatus == HFA384x_ASSOCSTATUS_STAASSOC || (rec.assocstatus == HFA384x_ASSOCSTATUS_STAASSOC ||
rec.assocstatus == HFA384x_ASSOCSTATUS_REASSOC); rec.assocstatus == HFA384x_ASSOCSTATUS_REASSOC);
if (rec.assocstatus == HFA384x_ASSOCSTATUS_AUTHFAIL) if (rec.assocstatus == HFA384x_ASSOCSTATUS_AUTHFAIL)
WLAN_LOG_WARNING("authfail assocstatus info frame received for authenticated station.\n"); printk(KERN_WARNING "authfail assocstatus info frame received for authenticated station.\n");
} }
return; return;
...@@ -1887,16 +1887,16 @@ void prism2sta_ev_info(wlandevice_t *wlandev, hfa384x_InfFrame_t *inf) ...@@ -1887,16 +1887,16 @@ void prism2sta_ev_info(wlandevice_t *wlandev, hfa384x_InfFrame_t *inf)
prism2sta_inf_psusercnt(wlandev, inf); prism2sta_inf_psusercnt(wlandev, inf);
break; break;
case HFA384x_IT_KEYIDCHANGED: case HFA384x_IT_KEYIDCHANGED:
WLAN_LOG_WARNING("Unhandled IT_KEYIDCHANGED\n"); printk(KERN_WARNING "Unhandled IT_KEYIDCHANGED\n");
break; break;
case HFA384x_IT_ASSOCREQ: case HFA384x_IT_ASSOCREQ:
WLAN_LOG_WARNING("Unhandled IT_ASSOCREQ\n"); printk(KERN_WARNING "Unhandled IT_ASSOCREQ\n");
break; break;
case HFA384x_IT_MICFAILURE: case HFA384x_IT_MICFAILURE:
WLAN_LOG_WARNING("Unhandled IT_MICFAILURE\n"); printk(KERN_WARNING "Unhandled IT_MICFAILURE\n");
break; break;
default: default:
WLAN_LOG_WARNING( printk(KERN_WARNING
"Unknown info type=0x%02x\n", inf->infotype); "Unknown info type=0x%02x\n", inf->infotype);
break; break;
} }
......
...@@ -58,8 +58,6 @@ ...@@ -58,8 +58,6 @@
#include <linux/hardirq.h> #include <linux/hardirq.h>
#define WLAN_LOG_WARNING(x,args...) printk(KERN_WARNING "%s: " x , __func__ , ##args);
#if defined(WLAN_INCLUDE_DEBUG) #if defined(WLAN_INCLUDE_DEBUG)
#define WLAN_HEX_DUMP( l, x, p, n) if( WLAN_DBVAR >= (l) ){ \ #define WLAN_HEX_DUMP( l, x, p, n) if( WLAN_DBVAR >= (l) ){ \
int __i__; \ int __i__; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment