bool success);
 
 /* Query ioctl */
-extern int dhdcdc_query_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd, void *buf,
-                             uint len);
+extern int brcmf_proto_cdc_query_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd,
+                                      void *buf, uint len);
 
 /* OS independent layer functions */
 extern int brcmf_os_proto_block(dhd_pub_t *pub);
 
        ((idx) << CDCF_IOC_IF_SHIFT)))
 
 /*
- * BDC header
+ * BDC header - Broadcom specific extension of CDC.
  * Used on data packets to convey priority across USB.
  */
 #define        BDC_HEADER_LEN          4
        unsigned char buf[BRCMF_C_IOCTL_MAXLEN + ROUND_UP_MARGIN];
 } dhd_prot_t;
 
-static int dhdcdc_msg(dhd_pub_t *dhd)
+static int brcmf_proto_cdc_msg(dhd_pub_t *dhd)
 {
        dhd_prot_t *prot = dhd->prot;
        int len = le32_to_cpu(prot->msg.len) + sizeof(struct cdc_ioctl);
                                      len);
 }
 
-static int dhdcdc_cmplt(dhd_pub_t *dhd, u32 id, u32 len)
+static int brcmf_proto_cdc_cmplt(dhd_pub_t *dhd, u32 id, u32 len)
 {
        int ret;
        dhd_prot_t *prot = dhd->prot;
 }
 
 int
-dhdcdc_query_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd, void *buf, uint len)
+brcmf_proto_cdc_query_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd, void *buf,
+                           uint len)
 {
        dhd_prot_t *prot = dhd->prot;
        struct cdc_ioctl *msg = &prot->msg;
        if (buf)
                memcpy(prot->buf, buf, len);
 
-       ret = dhdcdc_msg(dhd);
+       ret = brcmf_proto_cdc_msg(dhd);
        if (ret < 0) {
                DHD_ERROR(("dhdcdc_query_ioctl: dhdcdc_msg failed w/status "
                        "%d\n", ret));
 
 retry:
        /* wait for interrupt and get first fragment */
-       ret = dhdcdc_cmplt(dhd, prot->reqid, len);
+       ret = brcmf_proto_cdc_cmplt(dhd, prot->reqid, len);
        if (ret < 0)
                goto done;
 
        return ret;
 }
 
-int dhdcdc_set_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd, void *buf, uint len)
+int brcmf_proto_cdc_set_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd,
+                             void *buf, uint len)
 {
        dhd_prot_t *prot = dhd->prot;
        struct cdc_ioctl *msg = &prot->msg;
        if (buf)
                memcpy(prot->buf, buf, len);
 
-       ret = dhdcdc_msg(dhd);
+       ret = brcmf_proto_cdc_msg(dhd);
        if (ret < 0)
                goto done;
 
-       ret = dhdcdc_cmplt(dhd, prot->reqid, len);
+       ret = brcmf_proto_cdc_cmplt(dhd, prot->reqid, len);
        if (ret < 0)
                goto done;
 
 
 extern int dhd_bus_interface(struct dhd_bus *bus, uint arg, void *arg2);
 int
-dhd_prot_ioctl(dhd_pub_t *dhd, int ifidx, wl_ioctl_t *ioc, void *buf, int len)
+brcmf_proto_ioctl(dhd_pub_t *dhd, int ifidx, wl_ioctl_t *ioc, void *buf,
+                 int len)
 {
        dhd_prot_t *prot = dhd->prot;
        int ret = -1;
        prot->pending = true;
        prot->lastcmd = ioc->cmd;
        if (ioc->set)
-               ret = dhdcdc_set_ioctl(dhd, ifidx, ioc->cmd, buf, len);
+               ret = brcmf_proto_cdc_set_ioctl(dhd, ifidx, ioc->cmd, buf, len);
        else {
-               ret = dhdcdc_query_ioctl(dhd, ifidx, ioc->cmd, buf, len);
+               ret = brcmf_proto_cdc_query_ioctl(dhd, ifidx, ioc->cmd,
+                                                 buf, len);
                if (ret > 0)
                        ioc->used = ret - sizeof(struct cdc_ioctl);
        }
        skb->ip_summed is overloaded */
 
 int
-dhd_prot_iovar_op(dhd_pub_t *dhdp, const char *name,
+brcmf_proto_iovar_op(dhd_pub_t *dhdp, const char *name,
                  void *params, int plen, void *arg, int len, bool set)
 {
        return -ENOTSUPP;
 }
 
-void dhd_prot_dump(dhd_pub_t *dhdp, struct brcmu_strbuf *strbuf)
+void brcmf_proto_dump(dhd_pub_t *dhdp, struct brcmu_strbuf *strbuf)
 {
        brcmu_bprintf(strbuf, "Protocol CDC: reqid %d\n", dhdp->prot->reqid);
 }
 
-void dhd_prot_hdrpush(dhd_pub_t *dhd, int ifidx, struct sk_buff *pktbuf)
+void brcmf_proto_hdrpush(dhd_pub_t *dhd, int ifidx, struct sk_buff *pktbuf)
 {
        struct bdc_header *h;
 
        BDC_SET_IF_IDX(h, ifidx);
 }
 
-int dhd_prot_hdrpull(dhd_pub_t *dhd, int *ifidx, struct sk_buff *pktbuf)
+int brcmf_proto_hdrpull(dhd_pub_t *dhd, int *ifidx, struct sk_buff *pktbuf)
 {
        struct bdc_header *h;
 
        return 0;
 }
 
-int dhd_prot_attach(dhd_pub_t *dhd)
+int brcmf_proto_attach(dhd_pub_t *dhd)
 {
        dhd_prot_t *cdc;
 
 }
 
 /* ~NOTE~ What if another thread is waiting on the semaphore?  Holding it? */
-void dhd_prot_detach(dhd_pub_t *dhd)
+void brcmf_proto_detach(dhd_pub_t *dhd)
 {
        kfree(dhd->prot);
        dhd->prot = NULL;
 }
 
-void dhd_prot_dstats(dhd_pub_t *dhd)
+void brcmf_proto_dstats(dhd_pub_t *dhd)
 {
        /* No stats from dongle added yet, copy bus stats */
        dhd->dstats.tx_packets = dhd->tx_packets;
        return;
 }
 
-int dhd_prot_init(dhd_pub_t *dhd)
+int brcmf_proto_init(dhd_pub_t *dhd)
 {
        int ret = 0;
        char buf[128];
 
        /* Get the device MAC address */
        strcpy(buf, "cur_etheraddr");
-       ret = dhdcdc_query_ioctl(dhd, 0, BRCMF_C_GET_VAR, buf, sizeof(buf));
+       ret = brcmf_proto_cdc_query_ioctl(dhd, 0, BRCMF_C_GET_VAR,
+                                         buf, sizeof(buf));
        if (ret < 0) {
                brcmf_os_proto_unblock(dhd);
                return ret;
        return ret;
 }
 
-void dhd_prot_stop(dhd_pub_t *dhd)
+void brcmf_proto_stop(dhd_pub_t *dhd)
 {
        /* Nothing to do for CDC */
 }
 
 char brcmf_fw_path[MOD_PARAM_PATHLEN];
 char brcmf_nv_path[MOD_PARAM_PATHLEN];
 
-extern int dhdcdc_set_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd, void *buf,
-                           uint len);
 extern void dhd_ind_scan_confirm(void *h, bool status);
 extern int dhd_wl_ioctl(dhd_pub_t *dhd, uint cmd, char *buf, uint buflen);
 void dhd_iscan_lock(void);
        brcmu_bprintf(strbuf, "\n");
 
        /* Add any prot info */
-       dhd_prot_dump(dhdp, strbuf);
+       brcmf_proto_dump(dhdp, strbuf);
        brcmu_bprintf(strbuf, "\n");
 
        /* Add any bus info */
 
                        /* not in generic table, try protocol module */
                        if (ioc->cmd == DHD_GET_VAR)
-                               bcmerror = dhd_prot_iovar_op(dhd_pub, buf, arg,
-                                                            arglen, buf,
-                                                            buflen, IOV_GET);
+                               bcmerror = brcmf_proto_iovar_op(dhd_pub, buf,
+                                                               arg, arglen,
+                                                               buf, buflen,
+                                                               IOV_GET);
                        else
-                               bcmerror = dhd_prot_iovar_op(dhd_pub, buf,
-                                                            NULL, 0, arg,
-                                                            arglen, IOV_SET);
+                               bcmerror = brcmf_proto_iovar_op(dhd_pub, buf,
+                                                               NULL, 0, arg,
+                                                               arglen,
+                                                               IOV_SET);
                        if (bcmerror != -ENOTSUPP)
                                break;
 
        memcpy((char *)pkt_filterp, &enable_parm, sizeof(enable_parm));
 
        /* Enable/disable the specified filter. */
-       rc = dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, buf, buf_len);
+       rc = brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, buf, buf_len);
        rc = rc >= 0 ? 0 : rc;
        if (rc)
                DHD_TRACE(("%s: failed to add pktfilter %s, retcode = %d\n",
        /* Contorl the master mode */
        brcmu_mkiovar("pkt_filter_mode", (char *)&master_mode, 4, buf,
                    sizeof(buf));
-       rc = dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, buf, sizeof(buf));
+       rc = brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, buf,
+                                      sizeof(buf));
        rc = rc >= 0 ? 0 : rc;
        if (rc)
                DHD_TRACE(("%s: failed to add pktfilter %s, retcode = %d\n",
               &pkt_filter,
               WL_PKT_FILTER_FIXED_LEN + WL_PKT_FILTER_PATTERN_FIXED_LEN);
 
-       rc = dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, buf, buf_len);
+       rc = brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, buf, buf_len);
        rc = rc >= 0 ? 0 : rc;
 
        if (rc)
        int retcode;
 
        brcmu_mkiovar("arp_ol", (char *)&arp_mode, 4, iovbuf, sizeof(iovbuf));
-       retcode = dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR,
+       retcode = brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR,
                                   iovbuf, sizeof(iovbuf));
        retcode = retcode >= 0 ? 0 : retcode;
        if (retcode)
        int retcode;
 
        brcmu_mkiovar("arpoe", (char *)&arp_enable, 4, iovbuf, sizeof(iovbuf));
-       retcode = dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR,
+       retcode = brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR,
                                   iovbuf, sizeof(iovbuf));
        retcode = retcode >= 0 ? 0 : retcode;
        if (retcode)
        if (!ret) {
                brcmu_mkiovar("cur_etheraddr", (void *)ea_addr, ETH_ALEN,
                            buf, sizeof(buf));
-               ret = dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR,
+               ret = brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR,
                                       buf, sizeof(buf));
                if (ret < 0) {
                        DHD_ERROR(("%s: can't set MAC address , error=%d\n",
 
        /* Set Country code */
        if (dhd->country_code[0] != 0) {
-               if (dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_COUNTRY,
+               if (brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_COUNTRY,
                                     dhd->country_code,
                                     sizeof(dhd->country_code)) < 0) {
                        DHD_ERROR(("%s: country code setting failed\n",
        memset(buf, 0, sizeof(buf));
        ptr = buf;
        brcmu_mkiovar("ver", 0, 0, buf, sizeof(buf));
-       dhdcdc_query_ioctl(dhd, 0, BRCMF_C_GET_VAR, buf, sizeof(buf));
+       brcmf_proto_cdc_query_ioctl(dhd, 0, BRCMF_C_GET_VAR, buf, sizeof(buf));
        strsep(&ptr, "\n");
        /* Print fw version info */
        DHD_ERROR(("Firmware version = %s\n", buf));
 
        /* Set PowerSave mode */
-       dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_PM, (char *)&power_mode,
+       brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_PM, (char *)&power_mode,
                         sizeof(power_mode));
 
        /* Match Host and Dongle rx alignment */
        brcmu_mkiovar("bus:txglomalign", (char *)&dongle_align, 4, iovbuf,
                    sizeof(iovbuf));
-       dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf, sizeof(iovbuf));
+       brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf,
+                                 sizeof(iovbuf));
 
        /* disable glom option per default */
        brcmu_mkiovar("bus:txglom", (char *)&glom, 4, iovbuf, sizeof(iovbuf));
-       dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf, sizeof(iovbuf));
+       brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf,
+                                 sizeof(iovbuf));
 
        /* Setup timeout if Beacons are lost and roam is off to report
                 link down */
        brcmu_mkiovar("bcn_timeout", (char *)&bcn_timeout, 4, iovbuf,
                    sizeof(iovbuf));
-       dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf, sizeof(iovbuf));
+       brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf,
+                                 sizeof(iovbuf));
 
        /* Enable/Disable build-in roaming to allowed ext supplicant to take
                 of romaing */
        brcmu_mkiovar("roam_off", (char *)&brcmf_roam, 4,
                      iovbuf, sizeof(iovbuf));
-       dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf, sizeof(iovbuf));
+       brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf,
+                                 sizeof(iovbuf));
 
        /* Force STA UP */
        if (brcmf_radio_up)
-               dhdcdc_set_ioctl(dhd, 0, BRCMF_C_UP, (char *)&up, sizeof(up));
+               brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_UP, (char *)&up,
+                                         sizeof(up));
 
        /* Setup event_msgs */
        brcmu_mkiovar("event_msgs", dhd->eventmask, WL_EVENTING_MASK_LEN,
                      iovbuf, sizeof(iovbuf));
-       dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf, sizeof(iovbuf));
+       brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf,
+                                 sizeof(iovbuf));
 
-       dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_SCAN_CHANNEL_TIME,
+       brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_SCAN_CHANNEL_TIME,
                         (char *)&scan_assoc_time, sizeof(scan_assoc_time));
-       dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_SCAN_UNASSOC_TIME,
+       brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_SCAN_UNASSOC_TIME,
                         (char *)&scan_unassoc_time, sizeof(scan_unassoc_time));
 
 #ifdef ARP_OFFLOAD_SUPPORT
        /* Disable pfn */
        iov_len = brcmu_mkiovar("pfn", (char *)&pfn_enabled, 4, iovbuf,
                                sizeof(iovbuf));
-       ret = dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf, sizeof(iovbuf));
+       ret = brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf,
+                                       sizeof(iovbuf));
        if (ret >= 0) {
                /* clear pfn */
                iov_len = brcmu_mkiovar("pfnclear", 0, 0, iovbuf,
                                        sizeof(iovbuf));
                if (iov_len) {
-                       ret = dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf,
-                                       iov_len);
+                       ret = brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR,
+                                                       iovbuf, iov_len);
                        if (ret < 0) {
                                DHD_ERROR(("%s failed code %d\n", __func__,
                                           ret));
        ret = brcmu_mkiovar("pfn", (char *)&pfn_enabled, 4, iovbuf,
                        sizeof(iovbuf));
        if (ret > 0) {
-               ret = dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf,
+               ret = brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf,
                                sizeof(iovbuf));
                if (ret < 0) {
                        DHD_ERROR(("%s failed for error=%d\n", __func__, ret));
 
        brcmu_mkiovar("pfn_set", (char *)&pfn_param, sizeof(pfn_param), iovbuf,
                    sizeof(iovbuf));
-       dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf, sizeof(iovbuf));
+       brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf,
+                                 sizeof(iovbuf));
 
        /* set all pfn ssid */
        for (i = 0; i < nssid; i++) {
                err = brcmu_mkiovar("pfn_add", (char *)&pfn_element,
                                sizeof(pfn_element), iovbuf, sizeof(iovbuf));
                if (err > 0) {
-                       err = dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf,
-                                       sizeof(iovbuf));
+                       err = brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR,
+                                                       iovbuf, sizeof(iovbuf));
                        if (err < 0) {
                                DHD_ERROR(("%s failed for i=%d error=%d\n",
                                           __func__, i, err));
 
                        DHD_TRACE(("%s: force extra Suspend setting\n",
                                   __func__));
 
-                       dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_PM,
+                       brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_PM,
                                         (char *)&power_mode,
                                         sizeof(power_mode));
 
                                bcn_li_dtim = dhd->dtim_skip;
                        brcmu_mkiovar("bcn_li_dtim", (char *)&bcn_li_dtim,
                                    4, iovbuf, sizeof(iovbuf));
-                       dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf,
-                                        sizeof(iovbuf));
+                       brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR,
+                                                 iovbuf, sizeof(iovbuf));
 #ifdef CUSTOMER_HW2
                        /* Disable build-in roaming to allowed \
                         * supplicant to take of romaing
                         */
                        brcmu_mkiovar("roam_off", (char *)&roamvar, 4,
                                    iovbuf, sizeof(iovbuf));
-                       dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf,
-                                        sizeof(iovbuf));
+                       brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR,
+                                                 iovbuf, sizeof(iovbuf));
 #endif                         /* CUSTOMER_HW2 */
                } else {
 
                                   __func__));
 
                        power_mode = PM_FAST;
-                       dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_PM,
+                       brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_PM,
                                         (char *)&power_mode,
                                         sizeof(power_mode));
 
                        brcmu_mkiovar("bcn_li_dtim", (char *)&dhd->dtim_skip,
                                    4, iovbuf, sizeof(iovbuf));
 
-                       dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf,
-                                        sizeof(iovbuf));
+                       brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR,
+                                                 iovbuf, sizeof(iovbuf));
 #ifdef CUSTOMER_HW2
                        roamvar = 0;
                        brcmu_mkiovar("roam_off", (char *)&roamvar, 4, iovbuf,
                                    sizeof(iovbuf));
-                       dhdcdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR, iovbuf,
-                                        sizeof(iovbuf));
+                       brcmf_proto_cdc_set_ioctl(dhd, 0, BRCMF_C_SET_VAR,
+                                                 iovbuf, sizeof(iovbuf));
 #endif                         /* CUSTOMER_HW2 */
                }
        }
        ioc.len = buflen;
        ioc.set = true;
 
-       ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len);
+       ret = brcmf_proto_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len);
        if (ret < 0) {
                DHD_ERROR(("%s: set mcast_list failed, cnt %d\n",
                           brcmf_ifname(&dhd->pub, ifidx), cnt));
        ioc.len = buflen;
        ioc.set = true;
 
-       ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len);
+       ret = brcmf_proto_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len);
        if (ret < 0) {
                DHD_ERROR(("%s: set allmulti %d failed\n",
                           brcmf_ifname(&dhd->pub, ifidx),
        ioc.len = sizeof(allmulti);
        ioc.set = true;
 
-       ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len);
+       ret = brcmf_proto_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len);
        if (ret < 0) {
                DHD_ERROR(("%s: set promisc %d failed\n",
                           brcmf_ifname(&dhd->pub, ifidx),
        ioc.len = 32;
        ioc.set = true;
 
-       ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len);
+       ret = brcmf_proto_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len);
        if (ret < 0) {
                DHD_ERROR(("%s: set cur_etheraddr failed\n",
                           brcmf_ifname(&dhd->pub, ifidx)));
        }
 
        /* If the protocol uses a data header, apply it */
-       dhd_prot_hdrpush(dhdp, ifidx, pktbuf);
+       brcmf_proto_hdrpush(dhdp, ifidx, pktbuf);
 
        /* Use bus module to send data frame */
 #ifdef BCMDBUS
        struct ethhdr *eh;
        u16 type;
 
-       dhd_prot_hdrpull(dhdp, &ifidx, txp);
+       brcmf_proto_hdrpull(dhdp, &ifidx, txp);
 
        eh = (struct ethhdr *)(txp->data);
        type = ntohs(eh->h_proto);
 
        if (dhd->pub.up) {
                /* Use the protocol to get dongle stats */
-               dhd_prot_dstats(&dhd->pub);
+               brcmf_proto_dstats(&dhd->pub);
        }
 
        /* Copy dongle stats to net device stats */
        ioc.set = false;
 
        strcpy(buf, "toe_ol");
-       ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len);
+       ret = brcmf_proto_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len);
        if (ret < 0) {
                /* Check for older dongle image that doesn't support toe_ol */
                if (ret == -EIO) {
        strcpy(buf, "toe_ol");
        memcpy(&buf[sizeof("toe_ol")], &toe_ol, sizeof(u32));
 
-       ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len);
+       ret = brcmf_proto_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len);
        if (ret < 0) {
                DHD_ERROR(("%s: could not set toe_ol: ret=%d\n",
                           brcmf_ifname(&dhd->pub, ifidx), ret));
        strcpy(buf, "toe");
        memcpy(&buf[sizeof("toe")], &toe, sizeof(u32));
 
-       ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len);
+       ret = brcmf_proto_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len);
        if (ret < 0) {
                DHD_ERROR(("%s: could not set toe: ret=%d\n",
                           brcmf_ifname(&dhd->pub, ifidx), ret));
                dhd_wait_pend8021x(net);
 
        bcmerror =
-           dhd_prot_ioctl(&dhd->pub, ifidx, (wl_ioctl_t *)&ioc, buf, buflen);
+           brcmf_proto_ioctl(&dhd->pub, ifidx, (wl_ioctl_t *)&ioc, buf,
+                             buflen);
 
 done:
        if (!bcmerror && buf && ioc.buf) {
        dhd->pub.hdrlen = bus_hdrlen;
 
        /* Attach and link in the protocol */
-       if (dhd_prot_attach(&dhd->pub) != 0) {
+       if (brcmf_proto_attach(&dhd->pub) != 0) {
                DHD_ERROR(("dhd_prot_attach failed\n"));
                goto fail;
        }
 #ifdef EMBEDDED_PLATFORM
        brcmu_mkiovar("event_msgs", dhdp->eventmask, WL_EVENTING_MASK_LEN,
                      iovbuf, sizeof(iovbuf));
-       dhdcdc_query_ioctl(dhdp, 0, BRCMF_C_GET_VAR, iovbuf, sizeof(iovbuf));
+       brcmf_proto_cdc_query_ioctl(dhdp, 0, BRCMF_C_GET_VAR, iovbuf,
+                                   sizeof(iovbuf));
        memcpy(dhdp->eventmask, iovbuf, WL_EVENTING_MASK_LEN);
 
        setbit(dhdp->eventmask, BRCMF_E_SET_SSID);
 #endif                         /* EMBEDDED_PLATFORM */
 
        /* Bus is ready, do any protocol initialization */
-       ret = dhd_prot_init(&dhd->pub);
+       ret = brcmf_proto_init(&dhd->pub);
        if (ret < 0)
                return ret;
 
        ioc.len = len;
        ioc.set = set;
 
-       ret = dhd_prot_ioctl(pub, ifidx, &ioc, ioc.buf, ioc.len);
+       ret = brcmf_proto_ioctl(pub, ifidx, &ioc, ioc.buf, ioc.len);
        if (!set && ret >= 0)
                memcpy(cmd_buf, buf, cmd_len);
 
                dhd = (dhd_info_t *) dhdp->info;
                if (dhd) {
                        /* Stop the protocol module */
-                       dhd_prot_stop(&dhd->pub);
+                       brcmf_proto_stop(&dhd->pub);
 
                        /* Stop the bus module */
                        brcmf_sdbrcm_bus_stop(dhd->pub.bus, true);
                        dhd_bus_detach(dhdp);
 
                        if (dhdp->prot)
-                               dhd_prot_detach(dhdp);
+                               brcmf_proto_detach(dhdp);
 
                        wl_cfg80211_detach();
 
 
  */
 
 /* Linkage, sets prot link and updates hdrlen in pub */
-extern int dhd_prot_attach(dhd_pub_t *dhdp);
+extern int brcmf_proto_attach(dhd_pub_t *dhdp);
 
 /* Unlink, frees allocated protocol memory (including dhd_prot) */
-extern void dhd_prot_detach(dhd_pub_t *dhdp);
+extern void brcmf_proto_detach(dhd_pub_t *dhdp);
 
 /* Initialize protocol: sync w/dongle state.
  * Sets dongle media info (iswl, drv_version, mac address).
  */
-extern int dhd_prot_init(dhd_pub_t *dhdp);
+extern int brcmf_proto_init(dhd_pub_t *dhdp);
 
 /* Stop protocol: sync w/dongle state. */
-extern void dhd_prot_stop(dhd_pub_t *dhdp);
+extern void brcmf_proto_stop(dhd_pub_t *dhdp);
 
 /* Add any protocol-specific data header.
  * Caller must reserve prot_hdrlen prepend space.
  */
-extern void dhd_prot_hdrpush(dhd_pub_t *, int ifidx, struct sk_buff *txp);
+extern void brcmf_proto_hdrpush(dhd_pub_t *, int ifidx, struct sk_buff *txp);
 
 /* Remove any protocol-specific data header. */
-extern int dhd_prot_hdrpull(dhd_pub_t *, int *ifidx, struct sk_buff *rxp);
+extern int brcmf_proto_hdrpull(dhd_pub_t *, int *ifidx, struct sk_buff *rxp);
 
 /* Use protocol to issue ioctl to dongle */
-extern int dhd_prot_ioctl(dhd_pub_t *dhd, int ifidx, wl_ioctl_t *ioc,
+extern int brcmf_proto_ioctl(dhd_pub_t *dhd, int ifidx, wl_ioctl_t *ioc,
                          void *buf, int len);
 
 /* Check for and handle local prot-specific iovar commands */
-extern int dhd_prot_iovar_op(dhd_pub_t *dhdp, const char *name,
+extern int brcmf_proto_iovar_op(dhd_pub_t *dhdp, const char *name,
                             void *params, int plen, void *arg, int len,
                             bool set);
 
 /* Add prot dump output to a buffer */
-extern void dhd_prot_dump(dhd_pub_t *dhdp, struct brcmu_strbuf *strbuf);
+extern void brcmf_proto_dump(dhd_pub_t *dhdp, struct brcmu_strbuf *strbuf);
 
 /* Update local copy of dongle statistics */
-extern void dhd_prot_dstats(dhd_pub_t *dhdp);
+extern void brcmf_proto_dstats(dhd_pub_t *dhdp);
 
 extern int brcmf_c_ioctl(dhd_pub_t *dhd_pub, dhd_ioctl_t *ioc, void *buf,
                     uint buflen);
 
 extern int brcmf_c_preinit_ioctls(dhd_pub_t *dhd);
 
-#if defined(CONFIG_HAS_EARLYSUSPEND)
-extern int dhdcdc_set_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd, void *buf,
-                           uint len);
-#endif         /* defined(CONFIG_HAS_EARLYSUSPEND) */
+extern int brcmf_proto_cdc_set_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd,
+                                    void *buf, uint len);
 
 #endif                         /* _dhd_proto_h_ */
 
        ((prio^2)) : (prio))
 
 DHD_SPINWAIT_SLEEP_INIT(sdioh_spinwait_sleep);
-extern int dhdcdc_set_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd, void *buf,
-                           uint len);
 
 /* Core reg address translation */
 #define CORE_CC_REG(base, field)       (base + offsetof(chipcregs_t, field))
                                        save_pfirst = pnext;
                                }
                                continue;
-                       } else if (dhd_prot_hdrpull(bus->dhd, &ifidx, pfirst) !=
-                                  0) {
+                       } else if (brcmf_proto_hdrpull(bus->dhd, &ifidx, pfirst)
+                                       != 0) {
                                DHD_ERROR(("%s: rx protocol error\n",
                                           __func__));
                                bus->dhd->rx_errors++;
                if (pkt->len == 0) {
                        brcmu_pkt_buf_free_skb(pkt);
                        continue;
-               } else if (dhd_prot_hdrpull(bus->dhd, &ifidx, pkt) != 0) {
+               } else if (brcmf_proto_hdrpull(bus->dhd, &ifidx, pkt) != 0) {
                        DHD_ERROR(("%s: rx protocol error\n", __func__));
                        brcmu_pkt_buf_free_skb(pkt);
                        bus->dhd->rx_errors++;