replaced printk functions used for debug messages by respective netdev_warn
netdev_err functions.
Signed-off-by: Avinash Kumar <avi.kp.137@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
                data = 1;
                break;
        default:
-               printk(KERN_WARNING "Operation mode: %d not support\n", type);
+               netdev_warn(dev, "Operation mode: %d not support\n", type);
                return -EOPNOTSUPP;
        }
 
                return -EBUSY;
 
        if (wlandev->macmode == WLAN_MACMODE_ESS_AP) {
-               printk(KERN_ERR "Can't scan in AP mode\n");
+               netdev_err(dev, "Can't scan in AP mode\n");
                return -EOPNOTSUPP;
        }
 
                ((sme->auth_type == NL80211_AUTHTYPE_AUTOMATIC) && is_wep))
                        msg_join.authtype.data = P80211ENUM_authalg_sharedkey;
        else
-               printk(KERN_WARNING
+               netdev_warn(dev,
                        "Unhandled authorisation type for connect (%d)\n",
                        sme->auth_type);