Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent edbd606c
Loading
Loading
Loading
Loading
+16 −16
Original line number Diff line number Diff line
@@ -427,7 +427,7 @@ submit_rx_urb(hfa384x_t *hw, gfp_t memflags)

		/* Check whether we need to reset the RX pipe */
		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);
			if ( !test_and_set_bit(WORK_RX_HALT, &hw->usb_flags) )
				schedule_work(&hw->usb_work);
@@ -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 */
			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);
				set_bit(WORK_TX_HALT, &hw->usb_flags);
				schedule_work(&hw->usb_work);
@@ -809,7 +809,7 @@ static int usbctlx_rrid_completor_fn(usbctlx_completor_t *head)

	/* Validate the length, note body len calculation in bytes */
	if ( rridresult.riddata_len != complete->riddatalen ) {
		WLAN_LOG_WARNING(
		printk(KERN_WARNING
			"RID len mismatch, rid=0x%04x hlen=%d fwlen=%d\n",
		        rridresult.rid,
		        complete->riddatalen,
@@ -1499,7 +1499,7 @@ static int hfa384x_usbctlx_complete_sync(hfa384x_t *hw,
		if (ctlx->state == CTLX_COMPLETE) {
			result = completor->complete(completor);
		} else {
			WLAN_LOG_WARNING("CTLX[%d] error: state(%s)\n",
			printk(KERN_WARNING "CTLX[%d] error: state(%s)\n",
			                 hfa384x2host_16(ctlx->outbuf.type),
			                 ctlxstr(ctlx->state));
			result = -EIO;
@@ -2255,7 +2255,7 @@ hfa384x_drvr_flashdl_write(
		hw->bufinfo.page, hw->bufinfo.offset, dlbufaddr);

#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
	/* 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
@@ -2764,7 +2764,7 @@ int hfa384x_drvr_readpda(hfa384x_t *hw, void *buf, unsigned int len)
			len);		/* units of bytes */

		if (result) {
			WLAN_LOG_WARNING(
			printk(KERN_WARNING
					  "Read from index %zd failed, continuing\n",
				i );
			continue;
@@ -2941,10 +2941,10 @@ int hfa384x_drvr_start(hfa384x_t *hw)
			WLAN_LOG_DEBUG(0, "but second attempt succeeded. All should be ok\n");
		}
	} else if (result2 != 0) {
		WLAN_LOG_WARNING(
		printk(KERN_WARNING
			"First cmd_initialize() succeeded, but second attempt failed (result=%d)\n",
			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;
	}

@@ -3036,7 +3036,7 @@ int hfa384x_drvr_txframe(hfa384x_t *hw, struct sk_buff *skb, p80211_hdr_t *p8021
	char		*ptr;

	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;
		goto exit;
	}
@@ -3423,7 +3423,7 @@ hfa384x_usbctlxq_run(hfa384x_t *hw)
			 * this CTLX back in the "pending" queue
			 * 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);
			list_move(&head->list, &hw->ctlxq.pending);
			set_bit(WORK_TX_HALT, &hw->usb_flags);
@@ -3432,7 +3432,7 @@ hfa384x_usbctlxq_run(hfa384x_t *hw)
		}

		if (result == -ESHUTDOWN) {
			WLAN_LOG_WARNING("%s urb shutdown!\n",
			printk(KERN_WARNING "%s urb shutdown!\n",
					 hw->wlandev->netdev->name);
			break;
		}
@@ -3508,7 +3508,7 @@ static void hfa384x_usbin_callback(struct urb *urb)
		break;

	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);
		if ( !test_and_set_bit(WORK_RX_HALT, &hw->usb_flags) )
			schedule_work(&hw->usb_work);
@@ -3698,7 +3698,7 @@ static void hfa384x_usbin_ctlx(hfa384x_t *hw, hfa384x_usbin_t *usbin,
		 * Check that our message is what we're expecting ...
		 */
		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(intype));
			goto unlock;
@@ -3877,7 +3877,7 @@ static void hfa384x_usbin_rx(wlandevice_t *wlandev, struct sk_buff *skb)
		break;

	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) );
		goto done;
		break;
@@ -4057,7 +4057,7 @@ static void hfa384x_usbout_callback(struct urb *urb)
		case -EPIPE:
		{
			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);
			if ( !test_and_set_bit(WORK_TX_HALT, &hw->usb_flags) )
				schedule_work(&hw->usb_work);
@@ -4193,7 +4193,7 @@ static void hfa384x_ctlxout_callback(struct urb *urb)
		/* If the pipe has stalled then we need to reset it */
		if ( (urb->status == -EPIPE) &&
		      !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);
			schedule_work(&hw->usb_work);
		}
+1 −1
Original line number Diff line number Diff line
@@ -235,7 +235,7 @@ int skb_ether_to_p80211( wlandevice_t *wlandev, u32 ethconv, struct sk_buff *skb
				       skb->len,
				(wlandev->hostwep & HOSTWEP_DEFAULTKEY_MASK),
				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;
		}
		fc |= cpu_to_le16(WLAN_SET_FC_ISWEP(1));
+1 −1
Original line number Diff line number Diff line
@@ -1155,7 +1155,7 @@ static void p80211knetdev_tx_timeout( netdevice_t *netdev)
	if (wlandev->tx_timeout) {
		wlandev->tx_timeout(wlandev);
	} else {
		WLAN_LOG_WARNING("Implement tx_timeout for %s\n",
		printk(KERN_WARNING "Implement tx_timeout for %s\n",
				 wlandev->nsdname);
		netif_wake_queue(wlandev->netdev);
	}
+1 −1
Original line number Diff line number Diff line
@@ -183,7 +183,7 @@ int prism2mgmt_scan(wlandevice_t *wlandev, void *msgp)
                }
                result = hfa384x_drvr_setconfig16(hw, HFA384x_RID_CNFPASSIVESCANCTRL, word);
                if ( result ) {
                        WLAN_LOG_WARNING("Passive scan not supported with "
                        printk(KERN_WARNING "Passive scan not supported with "
					  "current firmware.  (<1.5.1)\n");
                }
        }
+1 −1
Original line number Diff line number Diff line
@@ -729,7 +729,7 @@ void *data)

	if (!isget)
		if ((*uint32) % 2) {
			WLAN_LOG_WARNING("Attempt to set odd number "
			printk(KERN_WARNING "Attempt to set odd number "
					  "FragmentationThreshold\n");
			msg->resultcode.data = P80211ENUM_resultcode_not_supported;
			return(0);
Loading