stkutil: Use struct to represent frame id
authorYang Gu <yang.gu@intel.com>
Tue, 27 Apr 2010 09:47:07 +0000 (17:47 +0800)
committerDenis Kenzior <denkenz@gmail.com>
Tue, 27 Apr 2010 14:30:59 +0000 (09:30 -0500)
commit3ae32b6e519c18d4e5d5ee7e716e3065fff30295
treeed39ec81d35516e0c72bc3ecf6e5dd0d0dfee3e3
parentdef5c38094f52fe7f597db12ce74c45eca1699ff
stkutil: Use struct to represent frame id

Use a field has_id to indicate if we have frame id or not. Originally
we use 0xFF to indicate we don't have frame id. But in that way, we
have to initialize each test case of proactive command when it doesn't
have this comprehension tlv to be 0xFF. To use has_id will save this
effort, and keep consistency with other implementations.
src/stkutil.c
src/stkutil.h