}
 
                pfirst = bus->glom;
-               dlen = (u16) pkttotlen(osh, pfirst);
+               dlen = (u16) pkttotlen(pfirst);
 
                /* Do an SDIO read for the superframe.  Configurable iovar to
                 * read directly into the chained packet, or allocate a large
 
                len = roundup(len, 4);
                ampdu_len += (len + (ndelim + 1) * AMPDU_DELIMITER_LEN);
 
-               dma_len += (u16) pkttotlen(osh, p);
+               dma_len += (u16) pkttotlen(p);
 
                WL_AMPDU_TX("wl%d: wlc_sendampdu: ampdu_len %d seg_cnt %d null delim %d\n",
                            wlc->pub->unit, ampdu_len, seg_cnt, ndelim);
                            ((u8) (p->priority) == tid)) {
 
                                plen =
-                                   pkttotlen(osh, p) + AMPDU_MAX_MPDU_OVERHEAD;
+                                   pkttotlen(p) + AMPDU_MAX_MPDU_OVERHEAD;
                                plen = max(scb_ampdu->min_len, plen);
 
                                if ((plen + ampdu_len) > maxlen) {
 
                                  tx_failed[WME_PRIO2AC(p->priority)].packets);
                        WLCNTADD(wlc->pub->_wme_cnt->
                                 tx_failed[WME_PRIO2AC(p->priority)].bytes,
-                                pkttotlen(wlc->osh, p));
+                                pkttotlen(p));
                }
                pkt_buf_free_skb(wlc->osh, p, true);
                wlc->pub->_cnt->txnobuf++;
               FC_SUBTYPE_ANY_QOS(fc));
 
        /* compute length of frame in bytes for use in PLCP computations */
-       len = pkttotlen(osh, p);
+       len = pkttotlen(p);
        phylen = len + FCS_LEN;
 
        /* If WEP enabled, add room in phylen for the additional bytes of
                        tx_info->flags |= IEEE80211_TX_STAT_ACK;
        }
 
-       totlen = pkttotlen(osh, p);
+       totlen = pkttotlen(p);
        free_pdu = true;
 
        wlc_txfifo_complete(wlc, queue, 1);
 
 /* packet */
        extern uint pktfrombuf(struct osl_info *osh, struct sk_buff *p,
                               uint offset, int len, unsigned char *buf);
-       extern uint pkttotlen(struct osl_info *osh, struct sk_buff *p);
+       extern uint pkttotlen(struct sk_buff *p);
 
 /* ethernet address */
        extern int bcm_ether_atoe(char *p, u8 *ea);
 
        return ret;
 }
 /* return total length of buffer chain */
-uint BCMFASTPATH pkttotlen(struct osl_info *osh, struct sk_buff *p)
+uint BCMFASTPATH pkttotlen(struct sk_buff *p)
 {
        uint total;