]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/mac/tkn154/IndirectTxP.nc
- bugfix: empty data frame sent in response to a datarequest (somtimes) had wrong...
[tinyos-2.x.git] / tos / lib / mac / tkn154 / IndirectTxP.nc
index 9a712f49776011e159a445b16f6c2f6e75019ddd..c404bcec7932ae8182749e0e9137eb72843f84b9 100644 (file)
@@ -267,7 +267,7 @@ implementation
         NULL //security
         );
     MHR(&m_emptyDataFrame)[MHR_INDEX_FC1] |= FC1_FRAMETYPE_DATA;
-    m_emptyDataFrame.headerLen = 9;
+    m_emptyDataFrame.headerLen = call IEEE154Frame.getHeaderLength(emptyDataMsg);
     m_emptyDataFrame.client = 1; // lock
     if (call CoordCapTx.transmit(&m_emptyDataFrame) != IEEE154_SUCCESS)
       m_emptyDataFrame.client = 0; // unlock